From 206571a0358615b26f6bda5ca48d08732f06d871 Mon Sep 17 00:00:00 2001 From: Luca Olivetti Date: Mon, 11 Mar 2019 20:26:41 +0100 Subject: 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. --- tools/EventClients/lib/python/xbmcclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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): """ """ -- cgit v1.2.3