force printing utf8 [afterall it is what i18n will return] else we were tb on could not decode using ascii

This commit is contained in:
Nikos Kouremenos 2006-02-08 23:35:04 +00:00
parent 861a52c3ed
commit 01e5bdd7e2
1 changed files with 5 additions and 5 deletions

View File

@ -45,9 +45,9 @@ _ = i18n._
i18n.init()
def send_error(error_message):
''' Writes error message to stderr and exits'''
print >> sys.stderr, error_message
sys.exit(1)
'''Writes error message to stderr and exits'''
print >> sys.stderr, error_message.encode('utf-8')
sys.exit()
try:
import dbus
@ -209,9 +209,9 @@ class GajimRemote:
self.command = sys.argv[1]
if self.command == 'help':
if self.argv_len == 3:
print self.help_on_command(sys.argv[2])
print self.help_on_command(sys.argv[2]).encode('utf-8')
else:
print self.compose_help()
print self.compose_help().encode('utf-8')
sys.exit()
self.init_connection()