消息 [32587]
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.
|
|
| 日期 |
用户 |
动作 |
参数 |
| 2007-08-23 14:59:03 | admin | 链接 | issue1767933 messages |
| 2007-08-23 14:59:03 | admin | 创建 | |
|