how to find "".encodings

P

P

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.
 
C

Christopher T King

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?

http://docs.python.org/lib/node127.html is the only list I know of; I
don't think that there's a actually a function that can list all the
currently registered codecs.
 
S

Skip Montanaro

vincent> I noticed that encoding "cp866" is missing in the docs....

Can you provide the necessary information for the table? Here's the raw
latex for the cp865 entry as a template:

\lineiii{cp865}
{865, IBM865}
{Danish, Norwegian}

Thx,

Skip
 
D

David Fraser

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
 
V

vincent wehren

Skip said:
vincent> I noticed that encoding "cp866" is missing in the docs....

Can you provide the necessary information for the table? Here's the raw
latex for the cp865 entry as a template:

\lineiii{cp865}
{865, IBM865}
{Danish, Norwegian}

Thx,

Skip
Sure:

\lineiii{cp866}
{866, IBM866}
{Russian}


Regards,


Vincent
 
V

vincent wehren

David said:
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,662
Latest member
sxarexu

Latest Threads

Top