From 48b99181d19bd3f7566610ff184885312a3f7ebf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 1 Sep 2009 18:59:50 -0600 Subject: [PATCH] Fix #3373 (I have problems with characters in title and book author name) --- src/calibre/ebooks/metadata/rtf.py | 58 ++++++++++++++++++++++-------- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/src/calibre/ebooks/metadata/rtf.py b/src/calibre/ebooks/metadata/rtf.py index b1ee453218..7f418de8d7 100644 --- a/src/calibre/ebooks/metadata/rtf.py +++ b/src/calibre/ebooks/metadata/rtf.py @@ -3,7 +3,7 @@ __copyright__ = '2008, Kovid Goyal ' """ Edit metadata in RTF files. """ -import re, cStringIO, sys +import re, cStringIO, codecs from calibre.ebooks.metadata import MetaInformation, string_to_authors @@ -13,7 +13,7 @@ comment_pat = re.compile(r'\{\\info.*?\{\\subject(.*?)(?