Permalink
Browse files

Fix for issue 4 (Unable to paste UTF-). Now properly encoding pasted …

…unicode string to UTF-8
  • Loading branch information...
R. Saravanan
R. Saravanan committed Nov 15, 2012
1 parent f04416c commit 5a8d2eabe5540b544e9c9c3e40aea4996825e760
Showing with 1 addition and 1 deletion.
  1. +1 −1 graphterm/gtermserver.py
View
@@ -490,7 +490,7 @@ def on_message(self, message):
if controller or allow_feedback_only:
try:
- msg_list = json.loads(str(message))
+ msg_list = json.loads(message if isinstance(message,str) else message.encode("UTF-8", "replace"))
if allow_feedback_only:
msg_list = [msg for msg in msg_list if msg[0] == "feedback"]
except Exception, excp:

0 comments on commit 5a8d2ea

Please sign in to comment.