Hello,
I have written Perl code to parse XML files using XML::Twig
Sometimes I get XML files with the following header
<?xml version="1.0" encoding="gbk"?>
Here my code throws an error saying
Couldn't open encmap gbk.enc:
No such file or directory
How can I prevent this error? what do I need to do?
I order to solve this, I downloaded a gbk.txt from here http://www.opensource.apple.com/source/libiconv/libiconv-30/libiconv/tests/GBK.TXT
Then I installed XML-Encoding and ran the tool
make_encmap GBK GBK.TXT > GBK.encmap
but now I got the error
Minpos never set at C:\Perl\site\bin/make_encmap line 87.
I am using activestate perl 5.10.1 on Windows XP SP3