Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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


Comment on Re^2: How to Fix Character Encoding Damaged Text Using Perl?
Download Code

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 about the Monastery: (7)
As of 2014-12-29 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls