I test in ubuntu with py2 env
[I 230831 18:54:21 web:1811] 304 GET / (192.168.1.102) 1.84ms
[I 230831 18:54:22 web:1811] 304 GET /static/glyphicons-halflings-regular.woff (192.168.1.102) 0.40ms
[I 230831 18:54:22 web:1811] 304 GET /devices (192.168.1.102) 1.36ms
[I 230831 18:54:24 web2serial:189] Opening serial socket (hash=0b57b8d7, baudrate=9600)
[I 230831 18:54:24 web2serial:136] open serial device by hash: 0b57b8d7
[I 230831 18:54:24 web2serial:139] serial device found for hash: /dev/ttyACM0
[I 230831 18:54:24 web2serial:204] Serial device successfullyh opened (hash=0b57b8d7, baudrate=9600)
[I 230831 18:54:25 web2serial:283] message from serial to websocket: {'msg': '\x14E0\x82'} (len=1)
[I 230831 18:54:26 web2serial:283] message from serial to websocket: {'msg': 'd\xf50\x8e'} (len=1)
[I 230831 18:54:27 web2serial:283] message from serial to websocket: {'msg': '\x14!\x8e\xc0\xfe'} (len=1)
[I 230831 18:54:28 web2serial:283] message from serial to websocket: {'msg': '\r\xc4\x8e@\xff'} (len=1)
[I 230831 18:54:29 web2serial:283] message from serial to websocket: {'msg': '\xa6H!\xb9'} (len=1)
[W 230831 18:54:30 web2serial:79] - force removing connection <__main__.SerSocketHandler object at 0x7f029f508f50> due to no ping
[I 230831 18:54:30 web2serial:283] message from serial to websocket: {'msg': '\x8d&\x8e@\xff'} (len=1)
[W 230831 18:54:30 web2serial:292] Traceback (most recent call last):
File "web2serial.py", line 284, in reader
self.write_message(json.dumps(message, encoding="raw_unicode_escape"))
File "/home/ubuntu/github/web2serial/software/web2serial-core/tornado/websocket.py", line 198, in write_message
raise WebSocketClosedError()
WebSocketClosedError

dos the error about unicode about chinese charactor?
I test in ubuntu with py2 env
dos the error about unicode about chinese charactor?