Better yet, post the warning your code produces.
In reply to Re: XML::Parser chokes on UTF-8? by dmitri in thread XML::Parser chokes on UTF-8? by perlcgi