473,396 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to find "".encodings

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.
Jul 18 '05 #1
9 1661
On Thu, 1 Jul 2004 P@draigBrady.com wrote:
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.

Jul 18 '05 #2
P
Christopher T King wrote:
On Thu, 1 Jul 2004 P@draigBrady.com wrote:

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.


Great thanks. If there was a link to that from
the appropriate entries in the following, I'd be happy.
http://docs.python.org/lib/string-methods.html

cheers,
Pádraig.
Jul 18 '05 #3
On Thu, 1 Jul 2004 P@draigBrady.com wrote:
Christopher T King wrote:
On Thu, 1 Jul 2004 P@draigBrady.com wrote:

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?

I missed your mention of the encodings module - I didn't even know it
existed! help(encodings) brings up a list too (albeit without
descriptions).
Great thanks. If there was a link to that from
the appropriate entries in the following, I'd be happy.
http://docs.python.org/lib/string-methods.html


Agreed (I had trouble finding it, too).

Jul 18 '05 #4
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 allthe
currently registered codecs.


Pádraig> Great thanks. If there was a link to that from the appropriate
Pádraig> entries in the following, I'd be happy.
Pádraig> http://docs.python.org/lib/string-methods.html

Done.

Skip

Jul 18 '05 #5
Skip Montanaro wrote:
>> 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.


Pádraig> Great thanks. If there was a link to that from the appropriate
Pádraig> entries in the following, I'd be happy.
Pádraig> http://docs.python.org/lib/string-methods.html

Done.

Skip


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

--
Vincent Wehren
Jul 18 '05 #6

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

Jul 18 '05 #7
P@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
Jul 18 '05 #8
Skip Montanaro wrote:
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
Jul 18 '05 #9
David Fraser wrote:
P@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
Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: P-O | last post by:
Hi! I want to open the "Find" window in MSIE to allow a user to find text on the page they are looking at (Ctrl+F). Any sggestions for the easiest possible way? /P-O
2
by: Praveen | last post by:
In the ISPF editor I am using, for a particullar PO Dataset I am getting the result of FIND statement narrowed down to the colums 48-56. i.e. if I give "FIND 'TO' ALL", the result I am getting as...
1
by: Just Me | last post by:
Table A contains a list of colors (example red, blue, green) Table B contains a variation of the colors in Table A (example light-red, medium-red, dark-red) To add a color variation to Table...
2
by: galsaba | last post by:
Is there a "Find" fucntion in Access? I found this is Excell Find (find_text, within_text, start_num). Where can i find a similar function is Access? galsaba
3
by: Dmitry Jouravlev | last post by:
Hi, I have a number of C++ solutions in Visual Studio .NET and when i compile them using "Whole Program Optimization", certain projects report a LNK1171 error saying that c2.dll could not be...
3
by: Rudy Ray Moore | last post by:
Hi guys, I often use the "Find" (aka CTRL-F) tool in "Visual Studio .net 2003 7.1 c++". I noticed that that dialog box does not go away when I perform a search (it stays on the screen). This...
2
by: Lenonardo | last post by:
Hi. I'm writing a VB.Net application to update multiple Excel Worksheets. I'm using late binding (i.e. all variables are objects + use createobject) I develop the application on an XP...
2
by: Ori :) | last post by:
I am writing an application to retrieve appointments from Outlook, I have the appointment items sorted by "Start" field and now I want to find the first record which's "Start" value is later than...
8
by: clyfish | last post by:
In cmd, I can use find like this. C:\>netstat -an | find "445" TCP 0.0.0.0:445 0.0.0.0:0 LISTENING UDP 0.0.0.0:445 *:* C:\> And os.system is OK....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.