Unicode error

Issue #164 new
Cineversity BugSubmitter created an issue

Reported By: Rick (rick@maxon.net)

Reported with Version: 1.5

Traceback (most recent call last): File "'CV-Toolbox.pypv'", line 973, in CoreMessage File "'CV-Toolbox.pypv'", line 1050, in writeInstallLog File ".\lib\27\cvToolboxCore.py", line 365, in writeXml File "D:\MAXON\17.029_RB138870\resource\modules\python\Python.win64.framework\lib\xml\etree\ElementTree.py", line 1126, in tostring ElementTree(element).write(file, encoding, method=method) File "D:\MAXON\17.029_RB138870\resource\modules\python\Python.win64.framework\lib\xml\etree\ElementTree.py", line 820, in write serialize(write, self._root, encoding, qnames, namespaces) File "D:\MAXON\17.029_RB138870\resource\modules\python\Python.win64.framework\lib\xml\etree\ElementTree.py", line 939, in _serialize_xml _serialize_xml(write, e, encoding, qnames, None) File "D:\MAXON\17.029_RB138870\resource\modules\python\Python.win64.framework\lib\xml\etree\ElementTree.py", line 937, in _serialize_xml write(_escape_cdata(text, encoding)) File "D:\MAXON\17.029_RB138870\resource\modules\python\Python.win64.framework\lib\xml\etree\ElementTree.py", line 1073, in _escape_cdata return text.encode(encoding, "xmlcharrefreplace") UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 16: ordinal not in range(128)

Files: http://download1516.mediafire.com/v23sep1tlt4g/tnwe57b8js9jgxi/cvToolbox.log

Comments (1)

  1. Rick Barrett

    This was caused by fancy apostrophes in the XML file. Really they shouldn't be there in the first place, and I manually fixed them. Ideally the code needs to be able to handle these, and more testing of unicode in the XML template needs to be done.

  2. Log in to comment