Hi,
How would one get a list of encodings
that can be passed to "".encode()
I know base64,utf8,lat in,ascii work
and these are listed in the encodings
and codecs modules, but where can one
get a definitive list?
cheers,
Pádraig. 9 1687
On Thu, 1 Jul 2004 P@draigBrady.co m wrote: How would one get a list of encodings that can be passed to "".encode()
I know base64,utf8,lat in,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.
Christopher T King wrote: On Thu, 1 Jul 2004 P@draigBrady.co m wrote:
How would one get a list of encodings that can be passed to "".encode()
I know base64,utf8,lat in,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.
On Thu, 1 Jul 2004 P@draigBrady.co m wrote: Christopher T King wrote: On Thu, 1 Jul 2004 P@draigBrady.co m wrote: I know base64,utf8,lat in,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).
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
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 P@draigBrady.co m wrote: Hi,
How would one get a list of encodings that can be passed to "".encode()
I know base64,utf8,lat in,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.alias es.aliases is what you want...
David
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
David Fraser wrote: P@draigBrady.co m wrote:
Hi,
How would one get a list of encodings that can be passed to "".encode()
I know base64,utf8,lat in,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.alias es.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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
"CHARS 'TO' - found 239 times within columns 48 to 56".
Please guide me as to how to make this PDS back to normal so that the
FIND command processes the whole 1 TO 80.
Thank you for the valuable time.
|
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 B, I want it to open a find record
dialog box before it opens the form so that you can locate the main
color you are going to enter the variations for. The form should then
open with the information from Table A already preloaded (or a dialog
box...
|
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
|
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 loaded. The error contains the correct path to c2.dll (and it is definately there).
This only happens on some projects and only when "whole program optimization" option is turned on. If i turn off this option, the problem goes away. I have other...
| |
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 is different from the behavior of VS6.
I find this frusterating because a mouse click is required to close the
window (I cannot ALT-TAB back to the find window to press ESC).
|
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 machine with Excel 2002 (version 10.0)
installed - and the code works fine.
I then test the code on a laptop running Excel 2000 (version 9.0) and it
|
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 now (future appointment
The relevant piece of my current code
Dim oCalendar As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar
Dim oItems As Outlook.Items = oCalendar.Item
oItems.Sort("Start"...
|
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.
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |