http://www.perlmonks.org?node_id=1099777


in reply to Database vs XML output representation of two-byte UTF-8 character

Is the only problem you're having with Test::More::diag(), or is there a more serious place where the problem occurs?

$tx->is('/result/entity/prop[@name="name"]/@value',
    $funny_name,
 ...

Could you clarify this bit, since it's not valid Perl?

Have you tried other forms of output, such as writing things to a file (opened with the proper encoding)?