So far I've done the following: in my XML::Parser directory under Parser/Encoding I set my shift-jis encoding file to be x-sjis-unicode.enc (renamed the file to shift-jis.enc)The encoding files contain the encoding name in the file header. If you just rename x-sjis-unicode.enc, it's header still reads x-sjis-unicode. Change the encoding atribute value in your xml file to x-sjis-unicode and try again.
You could also change the header of the copied file. I don't have advice for that since I don't know the format of the header, a simple s/$old/$new/ for the header section (padding with null bytes) doesn't do the job. Doing just that, I get
But the linesyntax error at line 2, column 23, byte 68 at /path/to/XML/Parser.pm
looks dubious to me anyways...<!DOCTYPE AdminRequest (View Source for full doctype...)> <AdminReques +t>
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: Parsing shift-jis XML with XML::TWIG
by shmem
in thread Parsing shift-jis XML with XML::TWIG
by jabarin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |