in reply to Re^2: UTF8 issue with XML::XPath
in thread UTF8 issue with XML::XPath

Even if your default locale is utf8, you need to specify input and output conversions. The locale doesn't effect I/O layer by default (it can be enabled with user open ':locale';, though).

XML::XPath will most likely return text strings, while print can only work properly with byte strings.

So you might even want to try binmode STDOUT, ':encoding(UTF-8)'; before printing.

Replies are listed 'Best First'.
Re^4: UTF8 issue with XML::XPath
by jodaka (Initiate) on Mar 05, 2008 at 14:11 UTC
    no, that doesn't help. I told you - it's XML::XPath issue, not my console/IO/locale... hm... looks like I'm going to switch to some other library, like XML::LibXML