Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Unaccenting characters

by mwhiting (Beadle)
on Aug 28, 2013 at 16:31 UTC ( #1051300=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %table = ( '└' => 'A', '┴' => 'A', '┬' => 'A', '├' => 'A', '─' => '
    +A', '┼' => 'A',
                  'ă' => 'C',
                  '╚' => 'E', '╔' => 'E', '╩' => 'E', '╦' => 'E',
    ...
    $str = "Les MisÚrables";
    $str =~ s/([^\x00-\x7F])/$table{'$1'} || '?'/ge;
    print "str:$str<br>";
    
  2. or download this
    str:Les Mis?rables
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-10-21 05:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (96 votes), past polls