Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 imbibing at the Monastery: (2)
As of 2014-07-26 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (178 votes), past polls