I don't see where you fixed the encoding declaration. You're telling your parser the UTF-8 document is encoded using iso-8859-1. Errors are to be expected.
I figured I would try and convert it to utf-8 before I parse
I don't see why you would want to do this extra work — you're now doing "decode-encode-decode" instead of just "decode" — and make needless assumptions about the original encoding.
In reply to Re: parse xml file using libxml - and Text:Iconv
by ikegami
in thread parse xml file using libxml - and Text:Iconv
by kathys39
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |