Message32587
| Author |
bugok |
| Recipients |
| Date |
2007年08月05日.15:01:57 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Hello,
The bug occurs when writing an XML file using the UTF-16 encoding.
The problem is that the etree encodes every string to utf-16 by itself - meaning, inserting the 0xfffe BOM before every string (tag, text, attribute name, etc.), causing a badly formed utf=16 strings.
A possible solution, which was offered by a co-worker of mine, was to use a utf-16 writer (from codecs.getwriter('utf-16') to write the file.
Best,
BugoK.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:59:03 | admin | link | issue1767933 messages |
| 2007年08月23日 14:59:03 | admin | create |
|