开发者

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

开发者 https://www.devze.com 2022-12-19 02:45 出处:网络
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 backsl开发者_运维知识库ash, and my program works just fine. Howeve

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 backsl开发者_运维知识库ash, 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?


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 ∖

0

精彩评论

暂无评论...
验证码 换一张
取 消