title: Reading file with "US-ASCII" encoding in Haskell: hGetContents: invalid argument (invalid byte sequence)
body: <p>I'm using Haskell for programming a parser, but this error is a wall I can't pass. Here is my code:</p>
  
  <pre><code>main = do
    arguments    &lt;- getArgs
    let fileName = head arguments
    fileContents &lt;- readFile fileName
    converter    &lt;- open "UTF-8" Nothing
    let titleLength           = length fileName
        titleWithoutExtension = take (titleLength - 4) fileName
        allNonEmptyLines      = unlines $ tail $ filter (/= "") $ lines fileContents
  </code></pre>
  
  <p>When I try to read a file with "US-ASCII" encoding I get the famous error hGetContents: invalid argument (invalid byte sequence). I've tried to change the "UTF-8" in my code by "US-ASCII", but the error persist. Is there a way for reading this files, or any kind of file handling encoding problems?</p>