Thread
:
Problem with preprocess_regexps and Unicode
View Single Post
12-17-2008, 12:58 PM
#
4
kovidgoyal
creator of calibre
Posts: 45,706
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The first thing I see wrong is
(re.compile(ru'\0092'), lambda match: ru'\u0027')
should be
(re.compile(ru'\u0092'), lambda match: ru'\u0027')
Note the missing u
kovidgoyal
View Public Profile
Visit kovidgoyal's homepage!
Find More Posts by kovidgoyal
Track Posts by kovidgoyal via RSS