Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Replacing non ascii in string

by Kenosis (Priest)
on Jan 30, 2013 at 05:04 UTC ( [id://1015961]=note: print w/replies, xml ) Need Help??


in reply to Replacing non ascii in string

Perhaps Text::Unidecode would be helpful (please forgive the lack of complete code formatting, as doing so eliminates displaying the characters the module decodes):

use strict; use warnings; use utf8; use Text::Unidecode;

my $string = q/‘ and ’ “ and ” and ä/;

print unidecode($string);

Output:

' and ' " and " and a

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found