Girzi has asked for the wisdom of the Perl Monks concerning the following question:
not well-formed (invalid token) at line 2, column 39, byte 61 at /usr/lib/perl5/XML/Parser.pm line 187 at /usr/lib/perl5/XML/Parser.pm line 192 XML::Parser::parse('XML::Parser=HASH(0x84e32c8)', '<?xml version="1.0"?>\x{a}<eleve nom="qsdqsd" prenom="Rapha...') called at /usr/local/share/perl/5.8.8/XML/Simple.pm line 343 XML::Simple::build_tree_xml_parser('XML::Simple=HASH(0x84e3244)', 'undef', 'SCALAR(0x82cfd58)') called at /usr/local/share/perl/5.8.8/XML/Simple.pm line 282 XML::Simple::build_tree('XML::Simple=HASH(0x84e3244)', 'undef', 'SCALAR(0x82cfd58)') called at /usr/local/share/perl/5.8.8/XML/Simple.pm line 223 XML::Simple::XMLin('<?xml version="1.0"?>\x{a}<eleve nom="qsdqsd" prenom="Rapha...') called at osp.pl line 64my script bug because of this :
<eleve nom="qsdqsd" prenom="Raphaël" classe="Seconde L" adresse="Léon Bourgain" code_postal="3423" ville="machin" pays="France" telephone="3421434">It's because I have some special caracters. How can I pass this problem, with encoding ? Thank you very much for your help !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Simple and encoding
by liverpole (Monsignor) on Dec 30, 2006 at 21:54 UTC | |
by Anonymous Monk on Dec 31, 2006 at 00:01 UTC | |
|
Re: XML::Simple and encoding
by ikegami (Patriarch) on Dec 30, 2006 at 21:59 UTC | |
by ikegami (Patriarch) on Dec 31, 2006 at 01:01 UTC |