libdxfrw icon indicating copy to clipboard operation
libdxfrw copied to clipboard

BOSS Can you support Chinese

Open cqwuxiaolong opened this issue 4 years ago • 2 comments

BOSS Can you support Chinese

cqwuxiaolong avatar Apr 22 '20 13:04 cqwuxiaolong

Is there any problem with files containing Chinese characters? Could you provide us an example of such file?

feragon avatar Apr 22 '20 13:04 feragon

This is an issue with file encoding. I remember there was a discussion already, but I couldn't find it yet. Iirc, there was even a sample file. libdxfrw expects UTF-8 encoded DXF files. But the text in the reported file was GB18030 encoded. Thus libdxfrw resp. LibreCAD could not interpret the text labels correct. From top off my head, I think I remember, that it is not possible with reasonable efforts to automatically detect if a file is UTF-8 or GB18030 encoded. I think the recommendation was to manually convert GB18030 encoded files to UTF-8. For LibreCAD we have a Chinese lff font, but I don't know how complete or usable this font is. I have to do an advanced search to find the discussion, I don't remember yet if it was on GitHub or in our forum.

lordofbikes avatar Apr 22 '20 19:04 lordofbikes