Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to sanely handle unicode in perl?

by choroba (Cardinal)
on Mar 20, 2015 at 17:24 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-03-28 17:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found