From 99bc426759db2d2d6d7576472718705887fc1445 Mon Sep 17 00:00:00 2001 From: John Cote Date: Mon, 30 Dec 2019 17:08:08 -0500 Subject: [PATCH] distributed: ensure string is utf-8 encoded --- direct/src/distributed/AstronInternalRepository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/distributed/AstronInternalRepository.py b/direct/src/distributed/AstronInternalRepository.py index d52ef52684..be19541a19 100644 --- a/direct/src/distributed/AstronInternalRepository.py +++ b/direct/src/distributed/AstronInternalRepository.py @@ -77,7 +77,7 @@ def msgpack_encode(dg, element): # Logstash bundles a MsgPack implementation SO OLD that this isn't # handled correctly so this function avoids it too msgpack_length(dg, len(element), 0xa0, 0x20, None, 0xda, 0xdb) - dg.appendData(element.encode()) + dg.appendData(element.encode('utf-8')) elif isinstance(element, float): # Python does not distinguish between floats and doubles, so we send # everything as a double in MsgPack: