微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

delphi – Codepage 0是什么?

我正在使用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.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐