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

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 => 'juerd.nl', do_not_use => 'spamtrap', perl6_server => 'feather' }


Comment on Re: How to read the unicode file

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2015-07-04 16:46 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 (60 votes), past polls