Page 1 of 1

[solved] [Mac/Linux] Japanese / Full-width Garbled

Posted: Fri May 03, 2019 5:41 am
by t.ogawa
Software:QCAD Pro 3.22.0.0
OS:Mac Mojave/CentOS7 (/Windows10)
Use Font:
 Windows - MS UI Gothic
 Mac - Osaka
  
Hello.
 
It is garbled when reading DXF file including Japanese / full-width characters with QCAD for Mac / Linux version.

In the Windows version, the character is not garbled if it is SJIS, but in the Mac / Linux version, garble occurs in both SJIS / UTF8.

However, even in the Mac / Linux version, Japanese is displayed for DWG files converted by AutoCAD.

Is the Mac / Linux version not compatible with DXF including Japanese / full-width characters?


Thank you.

Re: [Mac/Linux] Japanese / Full-width Garbled

Posted: Fri May 03, 2019 8:02 am
by t.ogawa
It is additional info.
 

DWG(afn-s.dwg) → In → QCAD(Mac) → Out → DXF → In → QCAD(Mac) - Not garbled


DXF(QCAD Output) → In → AutoCad(Mac) → Out → DXF(AC R2004 / AC R2018) → In → QCAD(Mac) - Not garbled


DXF(afn-s_SJIS.dxf) → In → AutoCad(Mac) → Out → DXF(AC R2004 / AC R2018) → In → QCAD(Mac) - Not garbled 

Is this a problem with the DXF file?

Re: [Mac/Linux] Japanese / Full-width Garbled

Posted: Fri May 03, 2019 9:03 am
by andrew
Yes, there is a problem with this DXF file: it does not provide a code page (encoding).

You can open the DXF file in a text editor and add the code page to it as follows:

Beginning of file (original, without code page):

Code: Select all

  0
SECTION
  2
HEADER
  9
$ACADVER
  1
AC1009
  9
$INSBASE
 10
0
 20
0
 30
0
Beginning of file (new, with code page):

Code: Select all

  0
SECTION
  2
HEADER
  9
$ACADVER
  1
AC1009
  9
$DWGCODEPAGE
  3
ANSI_932
  9
$INSBASE
 10
0
 20
0
 30
0
This will fix the issue with text encoding. Note that the font "standard" in QCAD does not contain any Japanese glyphs, so you will also have to substitute the font with another font, for example Arial (Edit > Substitute Fonts).

For more details about this issue, please refer to the Autodesk website.

Re: [Mac/Linux] Japanese / Full-width Garbled

Posted: Mon May 06, 2019 4:17 am
by t.ogawa
Hi Andrew.


Thank you for reply.
I tried, the problem was solved.

Thank you!