Re: XML::Simple and utf8 woes



corff@xxxxxxxxxxxxxxxxxx wrote:
Dennis Roesler <noone@xxxxxxxxxxx> wrote:

: I've been following this thread because I have been struggling with : XML::Simple writing/sourcing an XML file in cp932 encoding. The : NumericEscape is what resolved the writing and setting the encoding in : the xml declaration of the cp932 encoded file to x-sjis-cp932 so : XML::Simple would source it properly took me awhile to figure out :-(.

[ good examples snipped ]

Hi Dennis and all others who have contributed to this thread,

Thank you very much for your input.

I followed the idea of the broken SAX module and decided to make other
parsers usable by XML::SAX and by simply installing SAX::Expat as well
as XML::LibXML (my code now uses the latter, automagically) the script
finally runs flawlessly. What a mess of a difficult delivery it was!


Thanks for the update. I will look into SAX::Expat and XML::LibXML

Dennis

.



Relevant Pages

  • Re: How to encode a UTF8 file in VBA?
    ... and open the XML file in Internet Explorer. ... Explorer will complain if the encoding of the XML file doesn't match the ... Dim objStream As Stream ...
    (microsoft.public.access.modulesdaovba)
  • Re: Character Set Problem?
    ... was no problem until I created a test file with accented characters, ... so the actual encoding and the declaration did not match. ... I have an Access 2002 database that imports an XML file. ...
    (microsoft.public.access.modulesdaovba)
  • XML::DOM Encoding UTF-8 and ISO-8859-1
    ... the XML file: ... Through a CGI script, I load up the file, grab the encoding and put in ... the CGI header: ... If I change the CGI header encoding to UTF-8 like such: ...
    (comp.lang.perl.misc)
  • Re: Assigning another filehandle to STDOUT, using binmode.
    ... input files (but I'm not doing it directly with my own code --- I'm ... The XML parser gets the encoding from the XML file. ... completely independent of the locale. ...
    (comp.lang.perl.misc)

Loading