加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

delphi – Codepage 0是什么?

发布时间:2020-12-15 09:39:19 所属栏目:大数据 来源:网络整理
导读:我正在使用Delphi功能 StringCodePage 我在COM函数返回的字符串上调用它(Acrobat Annotation getContents – 请参阅我的其他帖子),它返回0. 什么是0?安思? 解决方法 代码页0是CP_ACP,当前Windows ANSI代码页. 来自Windows.pas: {$EXTERNALSYM CP_ACP}CP_A
我正在使用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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读