title: Encoding::UndefinedConversionError: "\xE4" from ASCII-8BIT to UTF-8
body: <p>I tried to fetch this <a href="http://data.linz.gv.at/katalog/population/abstammung/2012/auslg_2012.csv" rel="noreferrer">CSV-File</a> with <code>Net::HTTP</code>.</p>
  
  <pre><code>File.open(file, "w:UTF-8") do |f|
    content = Net::HTTP.get_response(URI.parse(url)).body
    f.write(content)
  end
  </code></pre>
  
  <p>After reading my local csv file again, i got some weird output.</p>
  
  <blockquote>
    <p>Nationalit\xE4t;Alter 0-5</p>
  </blockquote>
  
  <p>I tried to encode it to UTF-8, but got the error <code>Encoding::UndefinedConversionError: "\xE4" from ASCII-8BIT to UTF-8</code></p>
  
  <p>The <a href="https://github.com/oleander/rchardet" rel="noreferrer">rchardet</a> gem tolds me the content is <code>ISO-8859-2</code>. But convert to <code>UTF-8</code> will not work.</p>
  
  <p>After open it in a normal Texteditor, i see it normal encoded.</p>