Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Unicode encodingby Juerd (Abbot) |
on Jun 21, 2009 at 23:49 UTC ( [id://773433]=note: print w/replies, xml ) | Need Help?? |
$str =~ s/\\u([0-9a-fA-F]{4,6})/chr(hex($1))/eg; It looks like Java unicode escapes. These always have exactly 4 digits as far as I've seen. \u20AC80 would mean €80, but your example would not see it that way :) s/\\u([0-9A-Fa-f]{4})/chr hex $1/ge;
Backticks and apostrophes as balanced quotes are ugly, and not at all balanced, in just about any font.
In Section
Seekers of Perl Wisdom
|
|