如何在资源文件中添加 Ⓒ 符号以支持日语 Windows 操作系统.

编程入门 行业动态 更新时间:2024-10-27 02:28:07
本文介绍了如何在资源文件中添加 Ⓒ 符号以支持日语 Windows 操作系统.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我需要在我的资源文件 (.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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 01:03:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1126809.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:日语   符号   操作系统   文件   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!