Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to sanely handle unicode in perl?

by choroba (Archbishop)
on Mar 20, 2015 at 17:24 UTC ( #1120777=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    print "That line is: $line\n";
    $line =~ s/\x{f6}/o/;
    print "That line in ascii is: $line\n";
    
  2. or download this
    open my $in, '-|:raw:encoding(utf8)', "echo \xc3\xb6" or die $!;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2022-01-19 21:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?