Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to Determine a File's Character Code

by AndyZaft (Hermit)
on Jul 23, 2010 at 19:11 UTC ( [id://851086] : note . print w/replies, xml ) Need Help??


in reply to How to Determine a File's Character Code

As far as "some characters clearly printed", if a file is binary, bytes in it can fall between the a-z A-Z 0-9 ranges, that doesn't mean the other bytes are "garbage". Many files have header information that would indicate what the file is used for. As in the other post, the 'file' on *nix could tell you something about most of them. cygwin also has this, so you can check some files already in windows, just don't expect 100% accuracy. There are probably windows apps that try to do the same too.
  • Comment on Re: How to Determine a File's Character Code

Replies are listed 'Best First'.
Re^2: How to Determine a File's Character Code
by spickles (Scribe) on Jul 23, 2010 at 19:31 UTC
    Thanks Gents!