Re: [xml] python, xml, utf8->iso-8859-2 problem

On Mon, Feb 17, 2003 at 08:09:09PM +0100, Pavel Stehule wrote:
element.newChild(None,"beta","¾lutý kùò")

  Your error. What encoding is that string ? I MUST be UTF8, it
doesn't loom like it is

print  doc.serialize("iso-8859-2")
output conversion failed due to conv error
Bytes: 0xBE 0x6C 0x75 0x74
xmlOutputBufferFlush: encoder error

All tree operation must be UTF8


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]