title: python xml.sax parsing issue with accentuated characters
body: <p>The following code causes the well-known "UnicodeDecodeError: 'ascii' codec can't decode" error:</p>
  
  <pre><code>import xml.sax
  import io
  parser = xml.sax.make_parser()
  parser.parse(io.StringIO(u'&lt;a&gt;é&lt;/a&gt;'))
  </code></pre>
  
  <p>While</p>
  
  <pre><code>import xml.sax
  parser = xml.sax.make_parser()
  parser.parse(open('foo'))
  </code></pre>
  
  <p>works (the content of file "foo" is <code>&lt;a&gt;é&lt;/a&gt;</code>).</p>
  
  <p>I need to parse an XML string in my case, not a file.</p>
  
  <p>Is there any solution to my problem? Thanks.</p>