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

Re: Convert international characters to plain ASCII

by jeffa (Chancellor)
on Apr 04, 2012 at 21:24 UTC ( #963537=note: print w/ replies, xml ) Need Help??


in reply to Convert international characters to plain ASCII

Believe it or not ... this approach works:

use utf8; $string =~ tr/εδ/aa/s;
You can fill in the rest of the "decorated" latin characters as needed as well play with capitalization (lower casing etc.) to achieve your desired results.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)


Comment on Re: Convert international characters to plain ASCII
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (18)
As of 2015-07-01 17:26 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 (13 votes), past polls