I am using scrapy and django. While cleaning the data I use this:
html = re.sub(r'(™|®|©|™|®|©|™|®|©)', '',html, flags=re.IGNORECASE)
Running in normal python shell is fine. However every time I try to run this with scrapy crawl, I get this error:
SyntaxError: Non-ASCII character '\xe2' in file /somefile/ on line 105, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Can someone please help me out. Thanks!