On 6/28/2011 10:06 AM, Antoine Pitrou wrote: > On Tue, 28 Jun 2011 15:43:05 +0200 > Victor Stinner<victor.stinner at haypocalc.com> wrote: >> - ISO-8859-1 os some FreeBSD systems >> - ANSI code page on Windows, e.g. cp1252 (close to ISO-8859-1) in >> Western Europe, cp952 in Japan, ... >> - ASCII if the locale is manually set to an empty string or to "C", or >> if the environment is empty, or by default on some systems >> - something different depending on the system and user configuration... > > Why would utf-8 be the right thing in these cases? Because utf-8 is the only way to write out any Python 3 text. By default, writing and reading an str object should work on all Python installations. And because other apps are (increasingly) using it for exactly the same reason. -- Terry Jan Reedy
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