title: how to read a file that can be saved as either ansi or unicode in python?
body: <p>I have to write a script that support reading of a file which can be saved as either Unicode or Ansi (using MS's notepad).</p>
  
  <p>I don't have any indication of the encoding format in the file, how can I support both encoding formats? (kind of a generic way of reading files with out knowing the format in advanced).</p>