-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Closed
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
Currently, the calendar.HTMLCalendar.formatyearpage method is used to generate an html of a calendar. encoding parameter defaults to the sys.getdefaultencoding(), but it always returns "utf-8". (PEP 686 – Making UTF-8 Mode default ) I propose changing this default to 'utf-8', this makes it clearer
In a similar vein, the difflib.HtmlDiff also outputs HTML with UTF-8 encoding by default.
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement