encode help text

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2267 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-02-01 01:41:12 +00:00
parent fc1f85ae78
commit b6213934f0

View file

@ -230,7 +230,8 @@ class LCOptionParser (optparse.OptionParser, object):
def print_help (self, file=None):
"""print translated help text"""
s = "%s\n%s\n%s\n%s" % (self.format_help(), Notes, Retval, Examples)
s = u"%s\n%s\n%s\n%s" % (self.format_help(), Notes, Retval, Examples)
s = s.encode("iso-8859-1", "replace")
if os.name != 'posix':
linkcheck.StringUtil.paginate(s)
else: