title: UnicodeEncodeError: 'charmap' codec can't encode character '\u2010': character maps to <undefined>
body: <p>I keep getting UnicodeEncodeError when trying to print a 'Á' that I get from a website requested using selenium in python 3.4.</p>
  
  <p>I already defined at the top of my .py file</p>
  
  <p><code>#  -*- coding: utf-8 -*-</code></p>
  
  <p>the def is something like this:</p>
  
  <pre><code>from selenium import webdriver
  
  b = webdriver.Firefox()
  b.get('http://fisica.uniandes.edu.co/personal/profesores-de-planta')
  dataProf = b.find_elements_by_css_selector('td[width="508"]')
  for dato in dataProf:
          print(datos.text)
  </code></pre>
  
  <p>and the exception:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/Andres/Desktop/scrap/scrap.py", line 444, in &lt;module&gt;
      dar_p_fisica()
    File "C:/Users/Andres/Desktop/scrap/scrap.py", line 390, in dar_p_fisica
      print(datos.text) #.encode().decode('ascii', 'ignore')
    File "C:\Python34\lib\encodings\cp1252.py", line 19, in encode
      return codecs.charmap_encode(input,self.errors,encoding_table)[0]
  UnicodeEncodeError: 'charmap' codec can't encode character '\u2010' in position 173: character maps to &lt;undefined&gt;
  </code></pre>
  
  <p>thanks in advance</p>