how to find "".encodings

vincent wehren vincent at visualtrans.de
Fri Jul 2 10:17:26 EDT 2004


David Fraser wrote:
> P at draigBrady.com wrote:
> 
>> Hi,
>>
>> How would one get a list of encodings
>> that can be passed to "".encode()
>>
>> I know base64,utf8,latin,ascii work
>> and these are listed in the encodings
>> and codecs modules, but where can one
>> get a definitive list?
>>
>> cheers,
>> Pádraig.
> 
> 
> Maybe encodings.aliases.aliases is what you want...
> 
> David

Aliases provide the alias to encoding mapping for of a lot of encodings, 
but definitively not all (e.g. cp737)

--
Vincent Wehren



More information about the Python-list mailing list