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

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
t.ogawa
Junior Member
Posts: 14
Joined: Fri May 03, 2019 4:04 am

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

Post by t.ogawa » Fri May 03, 2019 5:41 am

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.
Attachments
afn-s_utf8.dxf
(314.23 KiB) Downloaded 376 times
mac_dwg.png
mac_dwg.png (315.82 KiB) Viewed 4098 times
mac_sjis_dxf.png
mac_sjis_dxf.png (337.52 KiB) Viewed 4098 times
mac_utf8_dxf.png
mac_utf8_dxf.png (331.48 KiB) Viewed 4098 times
windows_utf8_dxf.png
windows_utf8_dxf.png (329.63 KiB) Viewed 4098 times
windows_sjis_dxf.png
windows_sjis_dxf.png (286.17 KiB) Viewed 4098 times
afn-s.dwg
(98.9 KiB) Downloaded 380 times
afn-s_SJIS.dxf
(314.23 KiB) Downloaded 374 times

t.ogawa
Junior Member
Posts: 14
Joined: Fri May 03, 2019 4:04 am

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

Post by t.ogawa » Fri May 03, 2019 8:02 am

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?

User avatar
andrew
Site Admin
Posts: 9036
Joined: Fri Mar 30, 2007 6:07 am

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

Post by andrew » Fri May 03, 2019 9:03 am

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.

t.ogawa
Junior Member
Posts: 14
Joined: Fri May 03, 2019 4:04 am

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

Post by t.ogawa » Mon May 06, 2019 4:17 am

Hi Andrew.


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

Thank you!

Post Reply

Return to “QCAD Troubleshooting and Problems”