1

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?

user2864740
  • 60,010
  • 15
  • 145
  • 220
Maroxo
  • 11
  • 1

0 Answers0