我正在使用Delphi功能
StringCodePage
我在COM函数返回的字符串上调用它(Acrobat Annotation getContents – 请参阅我的其他帖子),它返回0.
什么是0?安思?
解决方法
代码页0是CP_ACP,当前Windows ANSI代码页.
来自Windows.pas:
{$EXTERNALSYM CP_ACP} CP_ACP = 0; { default to ANSI code page }
从MSDN开始:
CP_ACP
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.