in reply to Re^2: not well formed (invalid token)
in thread not well formed (invalid token)

Yes. See the Encode module which I already linked in my previous reply.

Replies are listed 'Best First'.
Re^4: not well formed (invalid token)
by Anonymous Monk on Nov 04, 2009 at 10:58 UTC
    Thanks for your reply, what it should be encoded from and to? what shall I encode it to?

      It probably needs to be decoded from character encoding your XML file is stored in into perl's internal representation.

      See also a more verbose explanation.

      Perl 6 - links to (nearly) everything that is Perl 6.