title: dealing with foreign characters in python
body: <p>I am having a problem dealing with special characters like '€'.</p>
  
  <p>TEXT contains prices in different currency's, and different formats</p>
  
  <pre><code> TEXT example:
      $ 11.00 USD
      $ 9.58 USD
      559,89 pуб.
      $ 9.58
      8,10€
      7,05€
      8,10€
      CDN$ 11.00
      22,10 TL
      $ 9.58 USD
  </code></pre>
  
  <p>I am trying to sort the different prices in to different lists,</p>
  
  <pre><code>USD = []
  RUS = []
  EUR = []
  TYR = []
  CND = []
  for link in TEXT:
      href = link.text.strip()
      if 'USD' in href:
          href = href.replace("$","")
          href = href.replace(" ","")
          href = href.replace("USD","")
          href = float(float(href))
          USD.append(href)
      elif 'pуб' in href:
          href = href.replace("pуб","")
          href = href.replace(" ","")
          href = href.replace(".",",")
          href = float(float(href))
          RUS.append(href)
      elif '€' in href:
          href = href.replace("€","")
          href = href.replace(" ","")
          href = href.replace(".",",")
          href = float(float(href))
          EUR.append(href)
      elif 'TL' in href:
          href = href.replace("TL","")
          href = href.replace(" ","")
          href = float(float(href))
          TYR.append(href)
      elif 'CND' in href:
          href = href.replace("CND$","")
          href = href.replace(" ","")
          href = float(float(href))
          CND.append(href)
      else:
          print("unknown currency")
  </code></pre>
  
  <p>but I am getting this error:</p>
  
  <pre><code>SyntaxError: Non-ASCII character '\xd1' in file C:/Users/S/PycharmProjects/untitled1/demo.py on line 26, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
  </code></pre>
  
  <p>because it docent recognize the symbols: pуб, € ...</p>