Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Reading a file with utf8 data

by Juerd (Abbot)
on Jul 28, 2007 at 12:07 UTC ( [id://629289]=note: print w/replies, xml ) Need Help??


in reply to Reading a file with utf8 data

Use a newer Perl, really. 5.6.1 is 6 years old, and in software years, that's very old :)

Also, use :encoding(UTF-8) when reading a file. If you use :utf8, perl assumes that everything is valid UTF8 data. When it happens to be invalid, for whatever reason, perl won't detect it. It will cause internal corruption, and that can theoretically lead to security problems and if you're lucky, crashes.

:utf8 is safe for *writing* only.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-19 10:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found