Creating a dxf with umlauts in text

Creating a dxf with umlauts in text

c_hoppen
Advocate Advocate
344 Views
3 Replies
Message 1 of 4

Creating a dxf with umlauts in text

c_hoppen
Advocate
Advocate

Hello,

I have a dxf that comes from Inventor and I need to add a text.

When I open the dxf in Mechanical 2024, umlauts are displayed incorrectly:

c_hoppen_0-1736349864852.png

 

My first thought was that it had something to do with the Encoding. 

So I created a new dxf in AutoCAD with just one text and opened it in notepad++.

It looks like this (created by AutoCAD)

c_hoppen_1-1736350141208.png

 

I read and write my dxf with "UTF-8 without BOM"

Encoding utf8WithoutBom = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false);
List<string> inhalt = System.IO.File.ReadLines(dxfdatei, utf8WithoutBom).ToList();
System.IO.File.WriteAllLines(dxfdatei, inhalt, utf8WithoutBom);

This is what my dxf looks like:

c_hoppen_3-1736350542570.png

Nevertheless, the umlauts are displayed incorrectly, see picture at the top.

 

I have no idea which magic word I'm missing.

 

Thanks for help,

Christoph

0 Likes
Accepted solutions (1)
345 Views
3 Replies
Replies (3)
Message 2 of 4

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

in most cases no need to change the DXF ascii settings, instead choose the correct font/text style.

If you would upload the DXF we might try it.

 

'- 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
Message 3 of 4

c_hoppen
Advocate
Advocate
Accepted solution

Alfred,

Thanks for help. 

It turned out to be a version problem. The export format in Inventor (2025! ) was set to dxf 2004. Using dxf 2018 instead solved the problem.

I didn't have this problem with earlier versions of Inventor, so it's probably a problem with Inventor rather than Autocad.

Regards

Christoph

0 Likes
Message 4 of 4

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

thank you for your feedback, good to know it's solved.

 

>> I didn't have this problem with earlier versions of Inventor,

>> so it's probably a problem with Inventor

Well, I don't know Inventor, however I assume the DXF-Version setting was not set by Inventor, but instead from a user that does it.

It would be strange if any Autodesk software would export to such an old format by default 😉

 

'- alfred -

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

(not an Autodesk consultant)