Code

use iso-8859-1
authoralvinpenner <alvinpenner@users.sourceforge.net>
Fri, 12 Dec 2008 11:15:17 +0000 (11:15 +0000)
committeralvinpenner <alvinpenner@users.sourceforge.net>
Fri, 12 Dec 2008 11:15:17 +0000 (11:15 +0000)
share/extensions/dxf_input.py

index 235c777b0748e5a90282c9475721fa22d3495d22..7e7a78da9950dd9660968c84c4b378a2c8481dbf 100644 (file)
@@ -210,6 +210,7 @@ while line[0] and line[1] != 'ENDSEC':
         seqs.append(line[0])                        # list of group codes\r
         if line[0] == '1' or line[0] == '8':        # text value\r
             val = line[1].replace('\~', ' ')\r
+            val = unicode(val, "iso-8859-1")\r
         elif line[0] == '62' or line[0] == '70':    # unscaled integer value\r
             val = int(line[1])\r
         elif line[0] == '10':                       # scaled float x value\r