A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-May/014726.html below:

[Python-Dev] IDLE and non-ASCII characters

[Python-Dev] IDLE and non-ASCII charactersMartin von Loewis loewis@informatik.hu-berlin.de
Fri, 11 May 2001 22:53:55 +0200 (MEST)
Thanks to a bug report I got, I noticed for the first time that you
cannot enter non-ASCII characters in IDLE anymore. Eg. at the shell
prompt, you may get

>>> s=3D'=E4=F6'
UnicodeError: ASCII encoding error: ordinal not in range(128)

Likewise, when trying to save a file that has non-ASCII characters,
you get a traceback.

Now, I think I understand all the causes of the problem (Tkinter
returning Unicode objects, and so on). However, I'm curious whether
anybody has proposals on how to deal with it.

For saving text files, if Python had an encoding directive, things
might be easier :-) For the shell prompt, I've no idea how to solve
this best.

So any suggestions are welcome.

Regards,
Martin



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4