Thread
:
Problem with preprocess_regexps and Unicode
View Single Post
12-18-2008, 05:18 PM
#
8
kiklop74
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Change the regular expression to look like this and it will work:
Code:
preprocess_regexps = [(re.compile(u'\u0092'), lambda match: u'\u0027')]
Note the absence of r. String can be unicode or raw but not both.
kiklop74
View Public Profile
Find More Posts by kiklop74
Track Posts by kiklop74 via RSS