什么是代码页0? [英] What is Codepage 0?

查看:179
本文介绍了什么是代码页0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Delphi函数

I'm using the Delphi function

StringCodePage

我在一个COM函数返回的字符串(Acrobat Annotation getContents - 参见我的其他帖子)上调用它,并返回0.

I call it on a string returned by a COM function (Acrobat Annotation getContents - see my other posts) and it returns 0.

什么是0? Ansi?

What is 0? Ansi?

推荐答案

代码页0是CP_ACP,是当前Windows ANSI代码页。

Code page 0 is CP_ACP, current Windows ANSI code page.

从Windows.pas:

From Windows.pas:

{$EXTERNALSYM CP_ACP}
CP_ACP                   = 0;             { default to ANSI code page }

MSDN


CP_ACP

CP_ACP

当前系统的Windows ANSI代码页。在不同的
计算机上,即使在同一网络上,该值也可以不同。它可以在同一台计算机上更改,导致
存储的数据变得不可恢复损坏。此值仅适用于临时
使用,如果可能,应使用UTF-16或UTF-8执行永久存储。

The current system Windows ANSI code page. This value can be different on different computers, even on the same network. It can be changed on the same computer, leading to stored data becoming irrecoverably corrupted. This value is only intended for temporary use and permanent storage should be done using UTF-16 or UTF-8 if possible.

这篇关于什么是代码页0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆