Page 1 of 1

International characters in texts

Posted: Mon Aug 25, 2014 2:55 pm
by andrew
From a dxflib user:
We are currently experiencing problems with Chinese / Japanese characters. How can I get this working using dxflib?

Re: International characters in texts

Posted: Mon Aug 25, 2014 2:58 pm
by andrew
The safest way to ensure that international characters / any Unicode characters are stored / loaded correctly is to escape them using the \U+xxxx notation (where xxxx is the hexadecimal character Unicode):

For example the string "日本語" can be stored in DXF as "\U+65e5\U+672c\U+8a9e".

Re: International characters in texts

Posted: Thu Sep 18, 2014 6:41 pm
by Julien
Hello,

Thanks, it worked.

Now for Editors that do not support Chinese characters I have "?" but for others everything is great.

Regards,
Julien