Welcome to the Monastery | |
PerlMonks |
Re: Convert hex to HTMLby kcott (Archbishop) |
on May 15, 2014 at 07:30 UTC ( [id://1086110]=note: print w/replies, xml ) | Need Help?? |
I suggest you go back to whatever code generated this and fix it. The text is littered with \u escapes. This escape has zero-length in the resulting string and causes the following character to be uppercased (see ucfirst); however, every following character is a zero which has no case! While you could search for every occurence of /[0-9a-f]{4}/ (or, even more selectively, /00[3-7][0-9a-f]/) and convert them to characters, you're just as likely to be converting parts of telephone numbers. You might get away with this but do so at your own risk!:
Output:
-- Ken
In Section
Seekers of Perl Wisdom
|
|