I was using soup to scrap some url and soup worked well with information I got from a stream over the url but it barked when I saved the file on the disc. I have to write a good metacello conf for soup and for my code to identify if this is a bug or not. stef On Jan 10, 2011, at 1:38 PM, Torsten Bergmann wrote:
Create a file "test.xml" with the following contents (german umlaut):
<?xml version="1.0" encoding="iso-8859-1"?> <test><![CDATA[Zaunkönig]]></test>
After loading ConfigurationOfXML try to parse it:
|fs| fs := FileStream fileNamed: 'test.xml'. XMLDOMParser parseDocumentFrom: fs.
=> gives an error: 'Invalid utf8 input detected' => it works if you remove the CDATA section
Looks like UTF8TextConverter is used independent from the encoding of the XML...
Bye T. -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone