Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Case shifting on accented characters

by ikegami (Pope)
on Sep 12, 2013 at 20:50 UTC ( #1053797=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    utf8::upgrade($_);
    /.../i
    
  2. or download this
    use feature 'unicode_strings'; 
    /.../i
    
  3. or download this
    use 5.012;
    /.../i
    
  4. or download this
    /.../iu
    
  5. or download this
    use re '/u';
    /.../i
    
  6. or download this
    use utf8;  # Source file is encoded using UTF-8
    print "Ú" =~ /╔/i ?1:0,"\n";  # 1
    print "╔" =~ /Ú/i ?1:0,"\n";  # 1
    print "Ú" =~ /\w/ ?1:0,"\n";  # 1
    print "╔" =~ /\w/ ?1:0,"\n";  # 1
    
  7. or download this
    use utf8;                             # UTF-8 code
    use open ':std', ':encoding(UTF-8)';  # UTF-8 terminal
    ...
    $_ = "LES MIS╔RABLES";
    s/([^\x00-\x7F])/lc($1)/eg;  # LES MISÚRABLES
    say;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (18)
As of 2015-07-06 20:55 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 (83 votes), past polls