1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| D:\>versxml.py
Traceback (most recent call last):
File "D:\versxml.py", line 15, in ?
xmldoc.writexml(open("d:\\exemple.xml", "w"), "\t", "", "\n", "windows-1256")
File "C:\Python24\lib\xml\dom\minidom.py", line 1746, in writexml
node.writexml(writer, indent, addindent, newl)
File "C:\Python24\lib\xml\dom\minidom.py", line 816, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
File "C:\Python24\lib\xml\dom\minidom.py", line 816, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
File "C:\Python24\lib\xml\dom\minidom.py", line 816, in writexml
node.writexml(writer,indent+addindent,addindent,newl)
File "C:\Python24\lib\xml\dom\minidom.py", line 1035, in writexml
_write_data(writer, "%s%s%s"%(indent, self.data, newl))
File "C:\Python24\lib\xml\dom\minidom.py", line 303, in _write_data
writer.write(data)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128) |
Partager