Fix title of Sueddeutsche recipe and fix generation of MAN pages in unicode environments

This commit is contained in:
Kovid Goyal 2009-05-26 08:59:38 -07:00
parent fe7876189c
commit e35acbf104
2 changed files with 11 additions and 8 deletions

View File

@ -54,6 +54,9 @@ def create_man_page(prog, parser):
'http://calibre.kovidgoyal.net/user_manual',
'.PP', '.B Created by '+__author__]
return bz2.compress('\n'.join(lines))
lines = [x if isinstance(x, unicode) else unicode(x, 'utf-8', 'replace') for
x in lines]
return bz2.compress((u'\n'.join(lines)).encode('utf-8'))

View File

@ -9,7 +9,7 @@ from calibre.web.feeds.news import BasicNewsRecipe
class Sueddeutsche(BasicNewsRecipe):
title = u'S\xc3\xbcddeutsche'
title = u'S\xfcddeutsche'
description = 'News from Germany'
__author__ = 'Oliver Niesner'
use_embedded_content = False