From a0abd953cacade245cc9766afbe76457c83e0245 Mon Sep 17 00:00:00 2001 From: alvinpenner Date: Sat, 2 May 2009 00:27:30 +0000 Subject: [PATCH] patch by Marcel Graf for LP bug 293940 comment 70 --- share/extensions/dxf_input.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/extensions/dxf_input.py b/share/extensions/dxf_input.py index 6ae5e6255..8305ae149 100644 --- a/share/extensions/dxf_input.py +++ b/share/extensions/dxf_input.py @@ -367,6 +367,9 @@ while line[0] and line[1] != 'DICTIONARY': val = inkex.re.sub( '\\\\S.*;', '', val) val = inkex.re.sub( '\\\\W.*;', '', val) val = unicode(val, "iso-8859-1") + val = val.encode('unicode_escape') + val = inkex.re.sub( '\\\\\\\\U\+([0-9A-Fa-f]{4})', '\\u\\1', val) + val = val.decode('unicode_escape') elif line[0] == '62' or line[0] == '70' or line[0] == '93': val = int(line[1]) elif line[0] == '10' or line[0] == '13' or line[0] == '14': # scaled float x value -- 2.30.2