How to tell if my YEN symbol is a backslash or a YEN?

萝らか妹 提交于 2021-01-27 19:14:02

问题


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?


回答1:


You would not know what character is display by font. They are in same character code 0x5C

Instead don't use system default font (for eg, MS Pゴシック), assign english font for eg, Arial

Or

Use Unicode backslash ∖



来源:https://stackoverflow.com/questions/2166836/how-to-tell-if-my-yen-symbol-is-a-backslash-or-a-yen

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!