Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
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)
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:
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
Solved! Go to Solution.