Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Revisions

1 of 3
codeape
  • 101.6k
  • 26
  • 180
  • 202

I believe you need to use unicode literals, not string literals.

Use:

string = u'ÐÑÒÓ...'

And:

rePat = re.compile(u'[^ÑÃï]',re.UNICODE)
codeape
  • 101.6k
  • 26
  • 180
  • 202

AltStyle によって変換されたページ (->オリジナル) /