In order to rule out issues with the serial terminal program, I experimented with Pyserial:
Code: Select all
import serial
s = serial.Serial("/dev/ttyACM0")
s.write("name = 'mõdu';print('Name:', name, len(name))\r\n".encode("utf-8"))
while True:
print(s.readline().decode("utf-8"), end="")
Code: Select all
name = 'mdu';print('Name:', name, len(name))
Name: mdu 3
Same problem occurs with ESP-32 and Unix ports. On the other hand -- CircuitPython 7.0.0a3 handles non-ascii input nicely.
Is it a known issue or limitation or should I file a bug report?