Been looking for a way to get a list of the available text encodings in Python on a given system. The following seems to work but needs more verification.
import encodings elist = list(set(encodings._aliases.values())) elist.sort()
There must be a better way to do this, the _aliases dictionary must get generated somewhere, the CodecRegistry must also maintain a list somewhere. Haven't found anywhere to access it though. Any ideas?
