You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Explicitly specify the encoding parameter value of calendar.HTMLCalendar as 'utf-8' #135001
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.
changed the title [-]Change the default *encoding* of `calendar.HTMLCalendar` to UTF-8[/-][+]Change the default encoding parameter value of `calendar.HTMLCalendar` to utf-8[/+]on Jun 1, 2025
changed the title [-]Change the default encoding parameter value of `calendar.HTMLCalendar` to utf-8[/-][+]Explicitly specify the encoding parameter value of `calendar.HTMLCalendar` as 'utf-8' [/+]on Jun 6, 2025
Activity
[-]Change the default *encoding* of `calendar.HTMLCalendar` to UTF-8[/-][+]Change the default encoding parameter value of `calendar.HTMLCalendar` to utf-8[/+][-]Change the default encoding parameter value of `calendar.HTMLCalendar` to utf-8[/-][+]Explicitly specify the encoding parameter value of `calendar.HTMLCalendar` as 'utf-8' [/+]gh-135001: Explicitly specify the encoding parameter value of `calend…
pythongh-135001: Explicitly specify the encoding parameter value of `…
pythongh-135001: Explicitly specify the encoding parameter value of `…
pythongh-135001: Explicitly specify the encoding parameter value of `…
pythongh-135001: Explicitly specify the encoding parameter value of `…