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.
Or read this on Hacker News