资源文件是否编译为UNICODE或ANSI代码页? [英] Are resource files compiled as UNICODE or ANSI code-page?

查看:132
本文介绍了资源文件是否编译为UNICODE或ANSI代码页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先 - 如果这已经回答了一百次,我的道歉! D'哦!

First - my apologies if this has been answered a hundred times over! D'oh!

但是我的搜索显然很糟糕,因为我没有回答这个基本问题:

But my search-fu apparently sucks, as I'm having no luck answering this basic question:


资源如何存储在EXE / DLL中?使用资源块的代码页作为UNICODE(UCS-2,Windows本机内部字符格式)或多字节字符?

How are resources stored in the EXE/DLL? As UNICODE (UCS-2, Windows native internal character format), or as multibyte characters using the code-page of the resources block?




  • 如何将UNICODE字符串嵌入到其资源(.rc)中?

  • 可以在VS 2012中的语言字符串中插入UNICODE(UCS-2)文本吗?

  • Windows仍然使用UCS-2,是在内部使用UTF16吗?

  • 我只是寻找一般答案或链接到详细信息,用于将UNICODE字符串放入.rc字符串表中。谢谢!

    I'm just looking for general answers, or links to details, rather than a detailed how-to for putting a UNICODE string into an .rc string table. Thanks!

    推荐答案

    WIN32中的所有资源字符串都编译为Unicode。有关详情,请参见此处。 .rc脚本本身可以是ANSI(使用本地代码页)或UCS-2和适当的BOM(参考)。

    All resource strings in WIN32 are compiled as Unicode. See here for more info. The .rc script itself can be ANSI (using the local codepage) or UCS-2 with the appropriate BOM (reference).

    这篇关于资源文件是否编译为UNICODE或ANSI代码页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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