[4suite] character encoding bug

Alexandre Fayolle alf at logilab.com
Fri Sep 22 07:12:51 MDT 2000


We are experiencing severe problems with iso-8859-1 encoding. 

from xml.dom.ext.reader import Sax2
from xml.dom.ext import Print
text="""<?xml version='1.0' encoding='iso-8859-1'?> 
<element>?????</element>"""

d=Sax2.FromXml(text)
Print(d)

gives: 
<element>àéèêëïîöôùü</element>

Funny thing is that when outputing html with a XSL transformation,
everything gets escaped, and '' becomes '&Atilde;&copy;', for instance. 

Any idea?

-- 
Alexandre Fayolle
http://www.logilab.com - "Mais o est donc Ornicar ?" - 
LOGILAB, Paris (France).




More information about the 4suite mailing list