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

Is your STDOUT in UTF-8 mode? (as in binmode STDOUT, ':encoding(utf-8), for example). That's the way to get 'normal Unicode' in Perl. Does this work for you:
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
    Thanx, I did 'use utf8;', but binmode, fixed my problem. I am still struggling to understand unicode concepts. :(.
    With binmode, it works using ether hex or eval, also, I've tried pack('U', hex $1), it works.
    For some reason, I thought, pack 'U', takes hex digits as an argument, but actually I've had to convert it to decimal, because pack('U', $1) didn't work.