Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: help neeed in identifying file encoding

by idsfa (Vicar)
on Mar 20, 2006 at 19:51 UTC ( #538029=note: print w/replies, xml ) Need Help??


in reply to help neeed in identifying file encoding

You can use File::BOM to determine the encoding of a file:

open $fh, '<', 'd:\input.txt' or die 'Could not open file'; $encoding = get_encoding_from_filehandle($fh);

The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. — Cyrus H. Gordon

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://538029]
help
Chatterbox?
[stevieb]: Finally, somehow, fried my first Raspberry Pi :) It was one I was using in a mock grow room with no protection, so I think humidity got to it.

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-01-16 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (192 votes). Check out past polls.

    Notices?