Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Replacing non ascii in string

by Kenosis (Priest)
on Jan 30, 2013 at 05:04 UTC ( #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


Comment on Re: Replacing non ascii in string
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2014-04-18 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (460 votes), past polls