Hi
I am using XML::LibXML module, In that I was getting an error like ":90: error:
Input is not proper UTF-8, indicate encoding !"
The code I am having is this
my $parser = XML::LibXML->new();
my $tree = $parser->parse_string($content);
my $root = $tree->getDocumentElement;
THIS IF FROM THE SERVER ERROR LOG
Can't locate auto/XML/LibXML/setEncoding.al in @INC (@INC contains:
/home/anish/doc_root/cgi-bin/editor
/home/anish/doc_root/cgi-bin/wbtcgi/cleanedup/quiz
/home/anish/doc_root/cgi-bin/aicc /home/anish/doc_root/cgi-bin/api
/home/anish/doc_root/cgi-bin/common /usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at
/home/anish/doc_root/cgi-bin/reguser/searchCoursesClient.pl line 160
I found that is caused because of the UTF8 Character settings and tried giving
"$parser->setEncoding("UTF8");" whihc there in the Encode.pm, But unfortunately
this module work in Perl 5.7 and above. Mine is 5.6.
I wanted to know whether I could set the $parser to UTF8 in perl 5.6.
Hope I am clearer in my doubts.
Thanks
Anish