Get the latest tech news

PEP 686 – Make UTF-8 mode default


Python Enhancement Proposals (PEPs)

Toggle light / dark / auto colour theme Author: Inada Naoki <songofacandy at gmail.com> Discussions-To: Discourse thread Status: Accepted Type: Standards Track Created: 18-Mar-2022 Python-Version: 3.15 Post-History: 18-Mar-2022, 31-Mar-2022 Resolution: Discourse message Table of Contents With this change, Python consistently uses UTF-8 for default encoding of files, stdio, and pipes. When a Python program depends on the default encoding, this change may cause UnicodeError, mojibake, or even silent data corruption. To ease backward compatibility issue, using PYTHONIOENCODING as the default encoding of PIPEs in the subprocess module is considered.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of PEP

PEP

Photo of UTF-8 mode default

UTF-8 mode default