Skip to content
Snippets Groups Projects
Commit 01e5bdd7 authored by nkour's avatar nkour
Browse files

force printing utf8 [afterall it is what i18n will return] else we were tb on...

force printing utf8 [afterall it is what i18n will return] else we were tb on could not decode using ascii
parent 861a52c3
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment