diff --git a/weboob/applications/galleroob/galleroob.py b/weboob/applications/galleroob/galleroob.py index a25bd6ff..9592ce1c 100644 --- a/weboob/applications/galleroob/galleroob.py +++ b/weboob/applications/galleroob/galleroob.py @@ -54,7 +54,7 @@ class GalleryListFormatter(IFormatter): class Galleroob(ReplApplication): APPNAME = 'galleroob' VERSION = '0.9' - COPYRIGHT = 'Copyright(C) 2011 Noé Rubinstein' + COPYRIGHT = u'Copyright(C) 2011 Noé Rubinstein' DESCRIPTION = 'galleroob browses and downloads web image galleries' CAPS = ICapGallery EXTRA_FORMATTERS = {'gallery_list': GalleryListFormatter} diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index 119792fc..0704a6d5 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -21,6 +21,7 @@ import atexit from cmd import Cmd import logging +import locale from optparse import OptionGroup, OptionParser, IndentedHelpFormatter import os import sys @@ -94,7 +95,7 @@ class ReplApplication(Cmd, ConsoleApplication): self.prompt = '%s> ' % self.APPNAME self.intro = '\n'.join(('Welcome to %s%s%s v%s' % (self.BOLD, self.APPNAME, self.NC, self.VERSION), '', - '%s' % self.COPYRIGHT, + self.COPYRIGHT.encode(sys.stdout.encoding or locale.getpreferredencoding()), 'This program is free software: you can redistribute it and/or modify', 'it under the terms of the GNU Affero General Public License as published by', 'the Free Software Foundation, either version 3 of the License, or',