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_name to CodecInfo.
cc @malemburg
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