title: Python UTF-8 REGEX
body: <p>I have a problem while trying to find text specified in regex.
  Everything work perfectly fine but when i added "\£" to my regex it started causing problems. I get SyntaxError. "NON ASCII CHACTER "\xc2" in file (...) but no encoding declared...</p>
  
  <p>I've tried to solve this problem with using</p>
  
  <pre><code>import sys
  reload(sys)  # to enable `setdefaultencoding` again
  sys.setdefaultencoding("UTF-8")
  </code></pre>
  
  <p>but it doesnt help. I just want to build regular expression and use pound sign there. flag re.Unicode flag doesnt help, saving string as unicode (pat) doesnt help. Is there any solution to fix this regex? I just want to build regular expression and use pound sign there.Thanks for help.</p>
  
  <pre><code>                    k = text.encode('utf-8')
                      pat = u'salar.{1,6}?([0-9\-,\. \tkFFRroOMmTtAanNuUMm\$\&amp;\;\£]{2,})'
                      pattern = re.compile(pat, flags = re.DOTALL|re.I|re.UNICODE)
                      salary =  pattern.search(k).group(1)
                      print (salary)
  </code></pre>
  
  <p>Error is still there even if I comment(put "#"  and skip all of those lines. Maybe its not connected with re. library but my settings?</p>