QCAD - 2D CAD System.
Please search for existing tasks (also closed ones) before opening a new task.
Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)
FS#1003 - QCAD Community Edition: add unicode support for layer names, block names
Opened by Tamas TEVESZ (kazmer) - Tuesday, 31 December 2013, 22:59 GMT+2
Last edited by Andrew (andrew) - Tuesday, 21 January 2014, 17:44 GMT+2
Community version (still on FBSD only), so dxflib. I suspect the culprit is dxflib.
I have created layers and blocks and whatnot with (hungarian) accented characters in their names.
Anyway, the DXF file written does have strings converted to single-byte encoding, but it seems it’s always ANSI-1252. When the output encoder encounters a character that is not representable in this one, it will use a literal question mark.
Actual case, I have a block with the name
106 egypólusú váltókapcsoló jelzőfénnyel
Of this, “ő” (U+0151) is not representable in ANSI-1252, so what gets written to the dxf is (non-ASCII shown in hex)
106 egyp<f3>lus<fa> v<e1>lt<f3>kapcsol<f3> jelz?f<e9>nnyel
Note the literal question mark.
Now the problem is this is an irreversible operation but the result is perfectly valid ANSI-1252, so upon opening the file again, I will get a block named
106 egypólusú váltókapcsoló jelz?fénnyel
IMHO the ideal resolution is to
This all assuming the R15 doesn’t actually depends hardly on ANSI-1252 and ANSI-1252 only. In that case, option #3 would still be nice.
Most Western European languages (and English) are not affected by this as ANSI-1252 has most of them covered, but a little to the east, a little to the south, a little to the north, and it does make a bit of a difference :)
Tuesday, 21 January 2014, 17:44 GMT+2
Reason for closing: Implemented
Additional comments about closing: https://github.com/qcad/qcad/commit/c457 3ae3ab2bc33620ce133f48dc9d321e7593cc