Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: How to Fix Character Encoding Damaged Text Using Perl?

by Anonymous Monk
on Jun 15, 2013 at 02:32 UTC ( #1039063=note: print w/replies, xml ) Need Help??


in reply to Re: How to Fix Character Encoding Damaged Text Using Perl?
in thread How to Fix Character Encoding Damaged Text Using Perl?

Whoops :)
my $bytes = encode( 'UTF-8', $perlunicodestring ); $bytes =~ s{\x52\x65\x3A\x20\x55\x52\x47\x45\x4E\x54}{Re: URGENT}g

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039063]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2016-10-01 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (579 votes). Check out past polls.