Skip to content

Explicitly specify the encoding parameter value of calendar.HTMLCalendar as 'utf-8'  #135001

@Wulian233

Description

@Wulian233

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

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy