title: How to solve UnicodeDecodeError when reading file with danish characters?
body: <p>I have read through similar questions on stack overflow, however non of them solve the unicode problem I have: 'ascii' codec can't decode byte 0xc3 in position 302.</p>
  
  <p>Have tried:
      import sys
      reload(sys)
      sys.setdefaultencoding("utf-8")</p>
  
  <p>however receive an error: NameError: name 'reload' is not defined</p>
  
  <p>I try to read file with danish vowels: æ, ø, å. In return receive 'UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 position 302 etc. 
  Position 302 and further on include danish vowels. Is there a way to fix this?</p>
  
  <p>So far I have tried putting a specially-formatted comment as the first line of the source code: <code># -*- coding: &lt;ascii&gt; -*-</code>.  Did not give any result.</p>
  
  <p>Also tried: <code>f = open(fname, encoding="ascii", errors="surrogate escape")</code>. But instead of reading file with characters as they are for example in the word "Europæiske" I get "Europ\udcc3\udca6iske".</p>
  
  <p>Then I tried suggestions from the blog (lost a link to that blog) to "import unicodedata", however, it was not well explained where to take it form there.</p>
  
  <pre><code>import unicodedata
  import csv
  
  with open('File.csv') as f:
    reader = csv.reader(f)
    for row in reader:
      print(row)
  </code></pre>