AutoCAD 2018 - Bad decoding of DXF file with properly encoded strings.

AutoCAD 2018 - Bad decoding of DXF file with properly encoded strings.

Anonymous
Not applicable
3,443 Views
15 Replies
Message 1 of 16

AutoCAD 2018 - Bad decoding of DXF file with properly encoded strings.

Anonymous
Not applicable

Attached is a file (ellipse_badendparm.cmp.dxf) that is not loading in AutoCAD 2018: when I open it, AutoCAD reports that the file is invalid. The file's DWGCODEPAGE is ANSI_1252 and and it has a string that is encoded as such. Compare this with the other attached file (ellipse_badendparm.bas.dxf) that is also declared as ANSI_1252 and has the same string encoded as UTF-8. This file is not rejected by AutoCAD and I can see some geometry. Why the file declared and encoded as ANSI_1252 not being read properly?

 

[ The subject line of this post has been edited for clarity by @handjonathan Original: Bad decoding of DXF file with properly encoded strings. ]

0 Likes
Accepted solutions (1)
3,444 Views
15 Replies
Replies (15)
Message 2 of 16

artc2
Autodesk
Autodesk
Accepted solution
I haven't looked at the dxf files you attached, but I can tell you that prior to AutoCAD 2007 the contents of dxf files were required to be only ASCII characters, so any non-ASCII characters were required to be in MIF or CIF format in the dxf file. As of AutoCAD 2007, the contents of dxf files could be in utf-8 format - this means regardless of the DWGCODEPAGE, all of the characters in the DXF file must be in utf-8 format.

The DWGCODEPAGE just specifies what code page should be used to interpret MIF sequences in the file - it does not mean that any valid characters in that code page can be used directly in the dxf file.
Message 3 of 16

GititXTQAB
Observer
Observer

Hi, we tried this but to no avail.

How can we define ASCII files manually?

0 Likes
Message 4 of 16

GititXTQAB
Observer
Observer

please your help ASAP!

0 Likes
Message 5 of 16

cadffm
Consultant
Consultant

 


@GititXTQAB  schrieb:

please your help ASAP!


rofl 😊

 

! Every buck speeds up informations, how many you willing to pay?

This is not meant to be taken seriously, but still with some truth

 

>>"Hi, we tried this but to no avail."

What is the issue (share your file)

What are you tried in detail?

 

>>"How can we define ASCII files manually?"

Simple, start EDITOR.EXE and write your DXF content, save the file with .DXF extension and code ANSI

(sure, you have to know what you have to write and in what syntax)

 

 

If you want help, share your file, screenshot of error messages or screencasts -

all information which can help to explain what the problem is on your side.

 

 

Sebastian

0 Likes
Message 6 of 16

GititXTQAB
Observer
Observer

Can you please get a remote on my desk? Need your help online ASAP!

0 Likes
Message 7 of 16

cadffm
Consultant
Consultant

Do you know that you write to other users like you, in public?

 

Share your file and perhaps someone take a look and will help you.

Sebastian

0 Likes
Message 8 of 16

GititXTQAB
Observer
Observer

Attached - Please take care about it - we're stuck at the same point ! waiting - big tnx!

0 Likes
Message 9 of 16

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Need your help online ASAP!

Then please describe the issues you have (could also write now "ASAP" 😉 ).

The drawing opens well, XRef's are missing as you have not sent them.

 

Until now we do not know what your question is ... even after 4 messages from your side we receiced not any input about what is your question, what is your issue, ...

At least, as you sent us a DWG it might not have anything to do with this thread at all as the thread handles issues about DXF, not DWG.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 10 of 16

cadffm
Consultant
Consultant

This is a DWG file, not a DXF file: It is impossible that you have the same problem!

Whatever your problem is: Start your own new Thread, attach your file and describe your problem detailed as possible.

 

FYI: I was able to open your file. Are you able to open the file? What program you're using?

 

Because of missing PDF-files, Images and Fonts it looks how it looks

CADffm_0-1667465034668.png

 

 

fonts that I don't have: aac_sivan,dimheb,sivan_m,tct,MIRYM,techno_m,C:\SHM_12\oron,hebtxt,MIRYM,TECHNO_M,mirym,mirym,HEBTXT,hebtxt,MIRYM,TECHNO_M,mirym,mirym,HEBTXT,hebtxt,MIRYM,TECHNO_M,mirym,HEBTXT,d2w,techno_w,miryl,simpheb

 

What is your Problem with that file, what is your question?

 

 
 

 

 

Sebastian

0 Likes
Message 11 of 16

GititXTQAB
Observer
Observer

As I mentioned above, the problem is apparently in coding and missing fonts, we have the existing fonts in the file but we still get wrong spelling and strange letters

0 Likes
Message 12 of 16

GititXTQAB
Observer
Observer

Why don't you take remote control?

0 Likes
Message 13 of 16

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Why don't you take remote control?

You can pay me, then I'm logging in with remote control.

Or with other words, why do you expect that another AutoCAD user is helping you for free and blocking his own work.

 

>> As I mentioned above, the problem is apparently in coding and missing fonts, 

Never saw any description about issues with missing fonts ... (inside your posts)

 

>> we have the existing fonts in the file

The fonts that are listed are not inside the dwg-file, AutoCAD just knows which font should be used and these fonts need to be installed on your system...

  • SHX files into a folder within the AutoCAD support paths
  • TTF fonts need to be installed for Windows.

 

If you don't have the fonts you need to get in contact with the creator of this drawing so he can send them (or you find them e.g. using Google search)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 14 of 16

GititXTQAB
Observer
Observer

These fonts exist and are installed in my system, what else can be done?

0 Likes
Message 15 of 16

pendean
Community Legend
Community Legend

@GititXTQAB wrote:

we have the existing fonts in the file but we still get wrong spelling and strange letters


FONTS are not saved inside DWG or DXF files: perhaps that's the real problem, an assumption that is not factual. All your custom fonts need to be correctly installed on all PCs that access your DWG/DXF files.

 

Perhaps that is being overlooked (seems to be from your posts).

 

HTH

 

 

0 Likes
Message 16 of 16

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> These fonts exist and are installed in my system

If AutoCAD would find them, AutoCAD would show them not as missing.

Can you please

  • open the dwg-file
  • press <F2> to get the bigger text window
  • scroll upwards to the start
  • create a screenshot from the content of the text windows (I assume we see there the missing fonts and the replacements used for them
  • upload this screenshot

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes