Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Converting UTF8 to Latin1

by Neighbour (Friar)
on Jun 20, 2012 at 08:34 UTC ( #977257=note: print w/ replies, xml ) Need Help??


in reply to Converting UTF8 to Latin1

Close, it's

Encode::encode($encoding_out, Encode::decode($encoding_in, $data));
Where $encoding_in and $encoding_out contain the encoding of your choice (in your case UTF8 and Latin1 (or iso-8859-1) respectively).

Edit: Also, what Corion said :)


Comment on Re: Converting UTF8 to Latin1
Select or Download Code
Re^2: Converting UTF8 to Latin1
by moritz (Cardinal) on Jun 20, 2012 at 10:21 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2015-07-04 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls