LibreCAD / libdxfrw

Successor of https://sourceforge.net/projects/libdxfrw/, developed for LibreCAD, by LibreCAD Contributors, usable for all
GNU General Public License v2.0
194 stars 72 forks source link

BOSS Can you support Chinese #17

Open cqwuxiaolong opened 4 years ago

cqwuxiaolong commented 4 years ago

BOSS Can you support Chinese

feragon commented 4 years ago

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

lordofbikes commented 4 years ago

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.