From 2cee590ca8f0b6a84c365f67ea7ecae816b32802 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Sun, 12 Jul 2015 10:18:34 -0300 Subject: [PATCH] fix unicode issue --- examples/echobot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/echobot.py b/examples/echobot.py index fc386982a..9455d7d8f 100644 --- a/examples/echobot.py +++ b/examples/echobot.py @@ -21,7 +21,7 @@ def echo(): if LAST_UPDATE_ID < update.update_id: # chat_id is required to reply any message chat_id = update.message.chat_id - message = update.message.text + message = update.message.text.encode('utf-8') if (message): # Reply the message