Message190392
| Author |
Adam.Urban |
| Recipients |
Adam.Urban, ezio.melotti |
| Date |
2013年05月31日.06:54:16 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1369983256.71.0.912927883191.issue18105@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
import xml.etree.ElementTree as ET
tree = ET.parse("myinput.xml")
tree.write("myoutput.xml", encoding="utf-16")
...Output is a garbled mess, often a mix of UTF-8 and UTF-16 bytes... UTF-8 output works fine, but when UTF-16, UTF-16LE, or UTF-16BE are specified the output is mangled. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年05月31日 06:54:16 | Adam.Urban | set | recipients:
+ Adam.Urban, ezio.melotti |
| 2013年05月31日 06:54:16 | Adam.Urban | set | messageid: <1369983256.71.0.912927883191.issue18105@psf.upfronthosting.co.za> |
| 2013年05月31日 06:54:16 | Adam.Urban | link | issue18105 messages |
| 2013年05月31日 06:54:16 | Adam.Urban | create |
|