We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72625e9 commit b111189Copy full SHA for b111189
custom_components/pyscript/jupyter_kernel.py
@@ -33,7 +33,7 @@ def msg_id():
33
34
def str_to_bytes(string):
35
"""Encode a string in bytes."""
36
- return string.encode('ascii')
+ return string.encode('utf-8')
37
38
class KernelBufferingHandler(logging.handlers.BufferingHandler):
39
"""Memory-based handler for logging; send via stdout queue."""
@@ -251,7 +251,7 @@ def deserialize_wire_msg(self, wire_msg):
251
msg_frames = wire_msg[delim_idx + 2:]
252
253
def decode(msg):
254
- return json.loads(msg.decode('ascii'))
+ return json.loads(msg.decode('utf-8'))
255
256
msg = {}
257
msg['header'] = decode(msg_frames[0])
0 commit comments