Non-ascii chars of the input get ignored
Posted: Fri Jul 23, 2021 6:56 am
I observed a weird behavior on Pico -- when the program calls input() and I'm entering non-ascii characters, these chars are not echoed and don't make it to the interpreter.
In order to rule out issues with the serial terminal program, I experimented with Pyserial:
The result was:
As you see, the letter "õ" didn't make it through.
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?
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?