title: Reading a file with french characters in Python
body: <p>I would like to read a file that contains french characters in Python such "é".I'm using these lines of code to do that:</p>
  
  <pre><code>import codecs
  with codecs.open(r'C:\Users\chsafouane\Desktop\saf.txt', encoding='ascii') as f:
      for line in f.readlines():
          line 
  </code></pre>
  
  <p>Yet, I get a </p>
  
  <pre><code>UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 3: ordinal not in range(128)
  </code></pre>
  
  <p>To reproduce the error, the file I'm trying to read contains only one word: "Accélération". Is there a way to accomplish this?</p>