diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index d75522ede..9b6ce84c2 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -2015,6 +2015,17 @@ def getSVG(obj,scale=1,linewidth=0.35,fontsize=12,fillstyle="shape color",direct if techdraw: svg = "" for i in range(len(text)): + t = text[i] + if not isinstance(t,unicode): + t = t.decode("utf8") + # temporary workaround for unsupported UTF8 in techdraw + try: + import unicodedata + except: + t = "" + print "Draft.getSVG: unicodedata not available" + else: + t = u"".join([c for c in unicodedata.normalize("NFKD",t) if not unicodedata.combining(c)]).encode("utf8") svg += '\n' + svg += '>\n' + t + '\n' else: svg = '