Skip to content

Commit

Permalink
Draft: SVG import, encode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jan 10, 2020
1 parent 93b711f commit 7dd808a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/importSVG.py
Expand Up @@ -1464,7 +1464,7 @@ def characters(self, content):
if self.text:
FCC.PrintMessage("reading characters %s\n" % content)
obj = self.doc.addObject("App::Annotation", 'Text')
obj.LabelText = content.encode('latin1')
obj.LabelText = content.encode('latin1', 'ignore') # use ignore to not break import if char is not found in latin1
if self.currentsymbol:
self.symbols[self.currentsymbol].append(obj)
vec = Vector(self.x, -self.y, 0)
Expand Down

0 comments on commit 7dd808a

Please sign in to comment.