[Python] Formattare un file di stringhe in XML
Dante Loi
danteloi1993 a gmail.com
Dom 2 Mar 2014 16:17:47 CET
Traceback (most recent call last):
File "./proTOxml.py", line 23, in <module>
tree.write(outfile)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 821, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 940, in
_serialize_xml
_serialize_xml(write, e, encoding, qnames, None)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 938, in
_serialize_xml
write(_escape_cdata(text, encoding))
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1074, in
_escape_cdata
return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3:
ordinal not in range(128)
Questo è l'errore che mi restituisce, par vi siano conflitti tra risorse
unicode e ascii...
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.python.it/pipermail/python/attachments/20140302/d929e1f3/attachment.html>
Maggiori informazioni sulla lista
Python