问题描述
我有一个小程序,用于将反斜杠符号打印到PDF文件中.在大多数英语操作系统中,反斜杠显示为反斜杠,并且我的程序运行正常.但是,在日语操作系统或朝鲜语操作系统中,我的程序开始出现问题.在那些OS中,反斜杠显示为YEN或WON符号,但我的程序将其导出为反斜杠.我知道这是字体的错误,但是我仍然想找到解决方案.有人知道如何判断我的反斜杠是像反斜杠一样显示吗?
I have a little program which is used to print the backslash symbol to the PDF file. In most English OS a backslash is displayed as a backslash, and my program works just fine. However, in Japanese OS or Korean OS my program starts to have problem. In those OS, a backslash is displayed as a YEN or WON symbol, but my program exports them as a backslash. I know that this is a bug of the font which has been around but i still want to find a solution for it. Does anyone know how to tell if my backslash is displayed like a backslash or something else?
推荐答案
您将不知道字体显示的是什么字符.它们使用相同的字符代码 0x5C
You would not know what character is display by font. They are in same character code 0x5C
请不要使用系统默认字体(例如MS Pゴシック),为Arial分配英文字体
Instead don't use system default font (for eg, MS Pゴシック), assign english font for eg, Arial
或
使用 Unicode反斜杠∖
这篇关于如何辨别我的日元符号是反斜线还是日元?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!