Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: How to read the unicode file

by Juerd (Abbot)
on Sep 18, 2008 at 16:46 UTC ( #712334=note: print w/ replies, xml ) Need Help??

in reply to How to read the unicode file

Unicode text files are read exactly the same way that other text files are read: by specifying a text encoding.

open my $fh, "< :encoding(UTF-8)", $filename or die "open: $!";

Juerd # { site => '', do_not_use => 'spamtrap', perl6_server => 'feather' }

Comment on Re: How to read the unicode file

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2015-11-29 22:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls