I'm using the following regex basically to search for and delete these characters.
invalid_unicode = re.compile(ur'(Û|²|°|±|É|¹|Í)')
My source code in ascii encoded, and whenever I try to run the script it spits out:
SyntaxError: Non-ASCII character '\xdb' in file ./release.py on line 273, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
If i follow the instructions at the given website, and place on the second line encoding: utf-8, my script doesn't run. Instead it gives me this error.
SyntaxError: (unicode error) 'utf8' codec can't decode byte 0xdb in position 0: unexpected end of data
I'm clearly lost if anyone could help me get that one regex running in an ascii written script that'd be great.