Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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);


' and ' " and " and a

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015961]
[thezip]: There's a word I'm looking for, which describes the (lack of) repeatability of an instruction. Specifically, when a command is run the first time, it succeeds, but then every subsequent execution of the same command results in an identical result...
[thezip]: What is the name of this property?
[marto]: /mewaves
[marto]: /mefails
[thezip]: Duh... I found it. Idempotentcy
[thezip]: howdy marto!

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2018-07-18 20:35 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (395 votes). Check out past polls.