title: 'utf-8' codec can't decode byte reading a file in Python3.4 but not in Python2.7
body: <p>I was trying to read a file in python2.7, and it was readen perfectly. The problem that I have is when I execute the same program in Python3.4 and then appear the error:</p>
  
  <pre><code>'utf-8' codec can't decode byte 0xf2 in position 424: invalid continuation byte'
  </code></pre>
  
  <p>Also, when I run the program in Windows (with python3.4), the error doesn't appear. The first line of the document is:
      <code>Codi;Codi_lloc_anonim;Nom</code></p>
  
  <p>and the code of my program is:</p>
  
  <pre><code>def lectdict(filename,colkey,colvalue):
      f = open(filename,'r')
      D = dict()
  
      for line in f:
         if line == '\n': continue
         D[line.split(';')[colkey]] = D.get(line.split(';')[colkey],[]) + [line.split(';')[colvalue]]
  
  f.close
  return D
  
  Traduccio = lectdict('Noms_departaments_centres.txt',1,2)
  </code></pre>