fix unicode issues (again)

This commit is contained in:
DaZZZl 2016-04-12 19:01:40 +02:00
parent 49fc66444c
commit 838f2bc712
2 changed files with 3 additions and 3 deletions

View file

@ -311,7 +311,7 @@ class Session(YowsupApp):
# Called by superclass
def onImage(self, image):
self.logger.debug('Received image message %s', str(image))
#self.logger.debug('Received image message %s', str(image))
buddy = image._from.split('@')[0]
participant = image.participant
if image.caption is None:

View file

@ -43,8 +43,8 @@ def ago(secs):
return "%d %s ago" % (diff, period)
def softToUni(message):
message = message.decode("utf-8")
return e4u.translate(message, reverse=False, **e4u.SOFTBANK_TRANSLATE_PROFILE)
#message = message.decode("utf-8")
return message #e4u.translate(message, reverse=False, **e4u.SOFTBANK_TRANSLATE_PROFILE)
def decodePassword(password):
return base64.b64decode(bytes(password.encode("utf-8")))