Unicode Text in DXF

If you are a Software Developer you may want to write a DXF writer for your application.There are some free .net class to do this.
 The problem is that the DXF class did not support Unicode characters as a Autocad text Entity. Its because it write DXF with ASCII (Ansi) code page.
If you want to write a text in DXF which contains Unicode characters  convert it to Hexadecimal with this format :\U+XXXX . I mean if you have a string, loop through each character and concatenate hexadecimal conversion to a new string. If you specify correct text style for this text, Autocad will translate and represent it in Correct format

Go Back

Comment