-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Provide the MIME name for encodings #149873
Copy link
Copy link
Open
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-unicodetype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-unicodetype-featureA feature request or enhancementA feature request or enhancement
Fields
Give feedbackNo fields configured for issues without a type.
Feature or enhancement
In many cases the name of the encoding matches the preferred MIME name, ignoring case and punctuation. But in some cases it is different (e.g. "ascii" vs "US-ASCII"). Python often accepts non-MIME names as well as MIME names, but other software can be more picky. Providing the preferred MIME name will allow to generate more standard documents (XML, emails, etc). We can add a public optional attribute
mime_nametoCodecInfo.cc @malemburg