title: python error codecs.charmap_encode(input,errors,encoding_map) UnicodeEncodeError: 'charmap' codec can't encode characters
body: <p>I am running sparql query to people's name  from dbpedia for a give movie
  After getting data I am displaying name as well as putting into Mysql 
  I am getting normal names but at one pointit threw an error</p>
  
  <p>I got an error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "TestSparql.py", line 172, in &lt;module&gt;
      print person_Name
    File "C:\Python27\Lib\encodings\cp437.py", line 12, in encode
      return codecs.charmap_encode(input,errors,encoding_map)
  UnicodeEncodeError: 'charmap' codec can't encode characters in position 16-21: character maps to &lt;undefined&gt; 
  </code></pre>
  
  <p>could some one explain what this error means and why it might have come? </p>