title: How to handle this encoding error in Python 3.6 which is fine in Python 2.6?
body: <p>HI I am wondering why the following code works in Python 2.6 but not in Python 3.6.</p>
  
  <pre><code>f = open('test', 'w')
  f.write(chr(144)) # this is an uppercase E with an accent
  f.close()
  </code></pre>