[XML::Simple-2.12] problems parsing non ASCII strings
- From: Jul <REMjulienpleeOVE@xxxxxxxxxxxxx>
- Date: Tue, 12 Jul 2005 17:56:58 +0000
module: XML::Simple-2.12 (also tried 2.14)
perl version: 5.00503
Hello,
I need to parse and write a XML configuration file wich contains
non-ASCII caraters (like 'é', in french).
I've choosen, XML::Simple with XML::Parser for these tasks, but everything
works fine if and only if I do not include any special carater in the
file, otherwise the HASH returned by XMLin() is totaly messed up.
Below is the comparison of the configuration file 'website.xml'
Thank you for any help you can provide.
Julien
# website.xml
<opt>
<contact>
<email>person@xxxxxxx</email>
<label>Informations générales</label>
</contact>
<contact>
<email>person@xxxxxxx</email>
<label>Directeur de collection</label>
</contact>
<contact>
<email>person@xxxxxxx</email>
<label>Webmestre</label>
</contact>
<sitename>Full name</sitename>
</opt>
# Data::Dump of the returned HASH ref
{
contact => {
email => "person\@foo.ext",
label => "Informations g\n \n \n person\@foo.ext\n Directeur de collection\n \n \n person\@foo.ext\n Webmestre\n \n Full name\n",
},
}
.
- Follow-Ups:
- Re: [XML::Simple-2.12] problems parsing non ASCII strings
- From: Michel Rodriguez
- Re: [XML::Simple-2.12] problems parsing non ASCII strings
- Prev by Date: Re: [XML::Simple-2.12] problems parsing non ASCII strings
- Next by Date: Re: [XML::Simple-2.12] problems parsing non ASCII strings
- Previous by thread: GD.pm Makefile not installing GD::Polyline
- Next by thread: Re: [XML::Simple-2.12] problems parsing non ASCII strings
- Index(es):