When I run python nonascii.py
on my Windows cmd with chcp 65001
, and input a non-ascii character like ť,č,š,ľ,ž,ý,etc., I get EOFError
because of the first line.
nonascii.py
nonascii = input('Type in a non-ascii character (try e.g. ž): ')
print(nonascii)
What shall I do so that the printed output == input?