in reply to Re^2: ASCII encoded unicode strings on web, such as \u00F3
in thread ASCII encoded unicode strings on web, such as \u00F3
?my $str = 'encontr\u00e9 configuraci\u00f3n v\u00e1lidod'; $str =~ s/ \\u ( \p{Hex}{4} ) / chr hex $1 /gex; binmode STDOUT, ':encoding(utf-8)'; print $str, "\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: ASCII encoded unicode strings on web, such as \u00F3
by igoryonya (Pilgrim) on Jul 13, 2015 at 00:54 UTC |