Explicitly specify the encoding parameter value of calendar.HTMLCalendar
as 'utf-8'
#135001
Labels
calendar.HTMLCalendar
as 'utf-8'
#135001
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
Currently, the
calendar.HTMLCalendar.formatyearpage
method is used to generate an html of a calendar.encoding
parameter defaults to thesys.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 clearerIn a similar vein, the
difflib.HtmlDiff
also outputs HTML with UTF-8 encoding by default.Linked PRs
calendar.HTMLCalendar
as 'utf-8' #135002The text was updated successfully, but these errors were encountered: