Subject: | Probably a charset problem |
Date: | Thu, 17 Jul 2008 17:12:25 +0200 |
To: | <bug-XML-Smart [...] rt.cpan.org.> |
From: | "Stefan Kox" <skx [...] ssis.de> |
Hi there,
I'm using xml-smart just for reading xml-files. We get The xml-file from our customer to update his user data in our db.
I know that the xml is not really good xml but i can't handle that. I have to use the file as it is delivered to us.
We get the files in different charsets. (utf-8, windows-1252) Sometimes with leading xml tag
<?xml version='1.0' encoding='Windows-1252'?> and sometimes without. But as i mentioned, I can't influence that.
Now I have a problem that a customer sends data with an umlaut. For example an ä. In the xml file it is hex coded as C3 A4 (In Ascii ä)
After the xml::smart has parsed the file not all of those codings (assorted) are corectly transmitted. And here i think it is could be a bug.
I'm using this code to parse the xml-file: my $config = XML::Smart->new($importfile, 'XML::Smart::Parser') ;
I have to use the XML::Smart::Parser because the others ignore the newlines.
If you need more information please contact me.
Schöne Grüße aus Mönchengladbach
Stefan Kox
S&S Internet Systeme GmbH
Urftstraße 64, 41239 Mönchengladbach
Tel: 02166-989-7000
Fax: 02166-989-7010
Mail: Stefan.Kox@ssis.de
Web: http://www.ssis.de
HRB 5867 AG Mönchengladbach
EU-Ident: DE195109399
Geschäftsführer: Walter Schiel
**********************************************
Nur mit Qualität kommen wir zum Erfolg
**********************************************