Making UTF-8 Mode Default
Lawrence D’Oliveiro <[email protected]> Tue, 7 Apr 2026 21:45:43 -0000 (UTC)
| Newsgroups | comp.lang.python |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
From <https://peps.python.org/pep-0686/>:
Additionally, many Python developers using Unix forget that the
default encoding is platform dependent. They omit to specify
encoding="utf-8" when they read text files encoded in UTF-8 (e.g.
JSON, TOML, Markdown, and Python source files). Inconsistent
default encoding causes many bugs.
(Raises hand) Guilty.