Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 chilling in the Monastery: (11)
As of 2014-07-22 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (128 votes), past polls