Guido van Rossum <guido@python.org> writes: > Or it suggests that we need a way to deal with encodings on stdout > more gently. See python.org/sf/612627. With that patch, MAL should be able to do print u and get it out correctly no matter what terminal encoding the user uses (assuming the user follows system conventions). It would also allow to do print s.decode("utf-8").encode(sys.stdout.encoding) Either would work as long as sys.stdout is a terminal, which should include IDLE interactive sys.stdout. It is debatable whether this should work for interactive mode only, or for all scripts. 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