问题
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