inguanzo has asked for the wisdom of the Perl Monks concerning the following question:
Even when the Filehandle is opened in utf8 mode this is not working. I can see the UTF8 flag is active with the pack conversion (this was the only mechanism that allow me to activate the flag, the other approaches doesn't seem to work i.e. decode utf8). I already tried : use bytes, use utf8 but nothing works. Any help will be highly appreciated ! Cheers PerlMonks ! Inguanzo$SourceHash->{$order_value} = $import_StringTable_xp_node->findvalue( +"value[\@language!=\"English\"]/text"); print XML_DIFF_FH $SourceHash->{$order_value} . "\n"; $SourceHash->{$order_value} = pack ("U*", unpack("C*", $SourceHash->{$ +order_value})); print XML_DIFF_FH $SourceHash->{$order_value} . "\n"; print STDERR Encode::is_utf8($SourceHash->{$order_value})?"1":"0";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using a variable with UTF8 content coming from XPATH findvalue
by graff (Chancellor) on Sep 27, 2007 at 21:24 UTC | |
by inguanzo (Acolyte) on Sep 27, 2007 at 22:12 UTC | |
by graff (Chancellor) on Sep 28, 2007 at 01:43 UTC | |
by inguanzo (Acolyte) on Sep 28, 2007 at 06:13 UTC | |
by graff (Chancellor) on Sep 28, 2007 at 07:02 UTC | |
| |
by graff (Chancellor) on Sep 27, 2007 at 22:33 UTC | |
by inguanzo (Acolyte) on Sep 27, 2007 at 22:40 UTC |