[docs] [issue32963] Python 2.7 tutorial claims source code is UTF-8 encoded

Martijn Pieters report at bugs.python.org
Tue Feb 27 04:04:23 EST 2018

New submission from Martijn Pieters <mj at python.org>:

Issue #29381 updated the tutorial to clarify #! use, but the 2.7 patch re-used Python 3 material that doesn't apply. See r40ba60f6 at https://github.com/python/cpython/commit/40ba60f6bf2f7192f86da395c71348d0fa24da09

It now reads:

"By default, Python source files are treated as encoded in UTF-8."


" To display all these characters properly, your editor must recognize that the file is UTF-8, and it must use a font that supports all the characters in the file."

This is a huge deviation from the previous text, and confusing and wrong to people new to Python 2.

assignee: docs at python
components: Documentation
messages: 312986
nosy: docs at python, mjpieters
priority: normal
severity: normal
status: open
title: Python 2.7 tutorial claims source code is UTF-8 encoded
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the docs mailing list