Test::XML not working with UTF-8

Stig Brautaset stig at brautaset.org
Thu Feb 1 13:29:05 GMT 2007

On 1 Feb 2007, at 11:39, John Ramsden-Developer wrote:
> Anyway, getting to the point, I wonder if anyone has any ideas
> why Test::XML fails to recognize UTF-8 characters, or can think
> of an alternative I might use if Test::XML is no good for UTF-8.

I think you are using it wrong. You claim to be passing utf8 to  
is_xml, but you're actually giving it a perl string. You need to  
actually encode it as utf8 too.

Read about perl strings and byte sequences here:



More information about the london.pm mailing list