I am currently available as a freelance Senior Perl Programmer. Download my up-to-date resume (PDF)
John Bokma MexIT
freelance Perl programmer

Parsing ISO-8859-1 encoded XML

Thursday, April 22, 2004 | 0 comments

The XML::Twig page has an overview with XML::Twig examples on the Perl Monks web site. I found an example by Michel Rodriguez, the author of XML::Twig, that explains how to use an input filter to read an ISO-8859-1 encoded XML file:

my $twig = new XML::Twig( input_filter => 'latin1' );

Yes, setting input_filter to the value of latin1 in the constructor call is all that's needed.

XML::Twig Perl module related

Also today

Please post a comment | read 0 comments | RSS feed