Skip to content

Commit

Permalink
OpenSCAD encode text as utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
5263 committed Oct 28, 2013
1 parent 7249ee4 commit 195b8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/OpenSCAD/OpenSCADCommands.py
Expand Up @@ -211,7 +211,7 @@ def isAllowedAlterDocument(self):
return True

def addelement(self):
scadstr=unicode(self.form.textEdit.toPlainText())
scadstr=unicode(self.form.textEdit.toPlainText()).encode('utf8')
asmesh=self.form.checkboxmesh.checkState()
import OpenSCADUtils, os
extension= 'stl' if asmesh else 'csg'
Expand Down

0 comments on commit 195b8e1

Please sign in to comment.