如何在资源文件中添加 Ⓒ 符号以支持日语 Windows 操作系统. [英] How to add Ⓒ symbol in resource file to support in Japanese Windows OS.

查看:24
本文介绍了如何在资源文件中添加 Ⓒ 符号以支持日语 Windows 操作系统.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的资源文件 (.rc) 中添加复制权符号Ⓒ.当我在.rc"文件中添加此符号并在日语操作系统上运行该应用程序时,它会显示 ?符号代替.下面是我的代码行.

I need to  add copy right symbol Ⓒ in my resource file(.rc). When I add this symbol in '.rc' file and run the app on Japanese OS, it displays ? symbol instead. Below is my code line.

LTEXT "Ⓒ 2017 Comapny Inc. All rights reserved.",IDC_COPYRIGHT,7,30,211,8

我尝试在日语语言环境机器上编辑此符号,但问题仍未解决.Ⓒ 符号被转换为 ?保存 .rc 文件时的符号.在日本机器上,我看到上面的代码如下:

I tried editing this symbol on Japanese locale machine machine but still the issue was not resolved. Ⓒ symbol gets converted to ? symbol when I save the .rc file. On Japanese machine I see the above code as below:

LTEXT "? 2017 Comapny Inc. All rights reserved.",IDC_COPYRIGHT,7,30,211,8

请分享您的想法如何做到这一点

 Please share your idea how this can be done 

推荐答案

日语 Windows 语言环境的 ANSI 代码页是 932(类似于 Shift-JIS).这种编码不包括版权标志(U+00A9 ©),也不包括你上面提到的字符(圈起来的字母C,U+24D2 ,这可能不是什么你自找的).如果您在代码页 932 中编译资源文件,则必须使用纯 ASCII (c).

The ANSI code page for the Japanese Windows locale is 932 (similar to Shift-JIS). This encoding does not include the copyright sign (U+00A9 ©), nor the character you mention above (circled letter C, U+24D2 , which is probably not what you wanted). If you are compiling resource files in code page 932, you will have to use plain ASCII (c).

或者,如果您可以将 RC 文件转换为支持 Unicode 的编码,您可以使用任何您喜欢的字符.这可能是 UTF-16LE(记事本误导性地描述为Unicode"的编码)或 UTF-8,如果您包含 #pragma code_page(65001)(但您必须确保不编辑在资源编辑器中,这会搞砸).

Alternatively if you can convert the RC file to an encoding that supports Unicode you can use any character you like. This could be UTF-16LE (the encoding that Notepad misleadingly describes as "Unicode"), or UTF-8 if you include #pragma code_page(65001) (but then you have to make sure to not edit in the resource editor which will mess that up).

这篇关于如何在资源文件中添加 Ⓒ 符号以支持日语 Windows 操作系统.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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