John Machin wrote:
Paul Watson wrote:
I see the list of standard encodings in Python 2.4.1 documentation
section 4.9.2.
Is there a method to enumerate the registered codecs at runtime?
This has been asked before, within the last couple of months AFAIR. Use
Google to search for codec(s) in this newsgroup in Google groups.
Basically the answer was no. What's your use case?
I need to report the encodings supported. When the user does not enter
a required encoding or enters an invalid encoding, we need to tell them
which encodings are valid and how they are specified. In an embedded
environment I would be concerned that some or most might have been left
out to save space/size/time.
The primary identifier and a descriptive string (localized) need to be
available at a minimum. Having aliases would be a plus.