aboutsummaryrefslogtreecommitdiff
path: root/tools/EventClients/lib
diff options
context:
space:
mode:
authorLuca Olivetti <luca@ventoso.org>2019-03-11 20:26:41 +0100
committerGitHub <noreply@github.com>2019-03-11 20:26:41 +0100
commit206571a0358615b26f6bda5ca48d08732f06d871 (patch)
treeae1af42b3ccc131802e126a5b684545c81304dab /tools/EventClients/lib
parentac9206b2c559028bd6472e0c6cda5c88a149e4b7 (diff)
xbmcclient.py doesn't allow non ascii characters
I want to show messages from an external program using xbmcclient.py, but as it is it doesn't allow me to send non ascii characters. With this modification I can do that. Tested with python 2 and python 3.
Diffstat (limited to 'tools/EventClients/lib')
-rw-r--r--tools/EventClients/lib/python/xbmcclient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/EventClients/lib/python/xbmcclient.py b/tools/EventClients/lib/python/xbmcclient.py
index 424f53c64e..bce68e13b4 100644
--- a/tools/EventClients/lib/python/xbmcclient.py
+++ b/tools/EventClients/lib/python/xbmcclient.py
@@ -101,7 +101,7 @@ ACTION_BUTTON = 0x02
def format_string(msg):
""" """
- return msg.encode() + b"\0"
+ return msg.encode('utf-8') + b"\0"
def format_uint32(num):
""" """