Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 lurking in the Monastery: (3)
As of 2015-07-07 02:29 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 (86 votes), past polls