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

Re: Convert international characters to plain ASCII

by jeffa (Bishop)
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)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://963537]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-10-21 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (269 votes). Check out past polls.

    Notices?