Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197761

Making UTF-8 Mode Default

From Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups comp.lang.python
Subject Making UTF-8 Mode Default
Date 2026-04-07 21:45 +0000
Organization A noiseless patient Spider
Message-ID <10r3tu7$34v12$2@dont-email.me> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar


Thread

Making UTF-8 Mode Default Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-07 21:45 +0000

csiph-web