Re: Where to locate existing standard encodings in python

2008-11-11 Thread Tim Chase
Content-Type: text/html; charset=utf-8lias For Python to parse this, I had to use Python's list of known encodings in order to determine whether I could even parse the site (for passing it to a string's .encode() method). You haven't said why you think you need a list of known encodings!

Re: Where to locate existing standard encodings in python

2008-11-11 Thread Grzegorz Staniak
On 11.11.2008, Tim Chase <[EMAIL PROTECTED]> wroted: > (Aside: stupid dilbert.com site developers...what sorta rubbish is > "utf-8lias"?! It's not like it's something that would appear > accidentally. It very much looks like an accident during httpd.conf editing, e.g. pasting part of an "Al

Re: Where to locate existing standard encodings in python

2008-11-11 Thread John Machin
On 12/11/2008 10:07, Tim Chase wrote: You haven't explained why you think that you *need* a list of all encodings that exist at a point in time. What are you going to do with the list? Just because I ran into this recently, the Dilbert.com site returns a bogus Content-type header with Cont

Re: Where to locate existing standard encodings in python

2008-11-11 Thread Tim Chase
You haven't explained why you think that you *need* a list of all encodings that exist at a point in time. What are you going to do with the list? Just because I ran into this recently, the Dilbert.com site returns a bogus Content-type header with Content-Type: text/html; charset=utf-8lias

Re: Where to locate existing standard encodings in python

2008-11-11 Thread rurpy
On Nov 11, 11:19 am, Philip Semanchuk <[EMAIL PROTECTED]> wrote: > On Nov 11, 2008, at 1:08 PM, News123 wrote: > > > Hi Philip, > > > Thanks for your answer: > > The fact, that a module 'encodings' exists was new to me. > > We both learned something new today. =) > > > encodings.aliases.aliases has

Re: Where to locate existing standard encodings in python

2008-11-11 Thread John Machin
On Nov 10, 11:00 am, News123 <[EMAIL PROTECTED]> wrote: > Hi, > > I was googling quite some time before finding the answer to my question: > 'what are the names for the encodings supported by python?' > > I found the answer athttp://python.active-venture.com/lib/node127.html > > Now my question: >

Re: Where to locate existing standard encodings in python

2008-11-11 Thread Philip Semanchuk
On Nov 11, 2008, at 1:08 PM, News123 wrote: Hi Philip, Thanks for your answer: The fact, that a module 'encodings' exists was new to me. We both learned something new today. =) encodings.aliases.aliases has however one problem. It helps to locate all encoding aliases, but it won't find en

Re: Where to locate existing standard encodings in python

2008-11-11 Thread News123
Hi Philip, Thanks for your answer: The fact, that a module 'encodings' exists was new to me. encodings.aliases.aliases has however one problem. It helps to locate all encoding aliases, but it won't find entries for which no aliases exist: So I can find koi8_r and its aliases [ [k,v] for k,v in

Re: Where to locate existing standard encodings in python

2008-11-11 Thread Philip Semanchuk
On Nov 11, 2008, at 9:10 AM, News123 wrote: Hi Philip, Your answer touches exaclty one point, which I was slightly afraid of: - The list is not exhaustive - python versions might have implemented different codecs. This is why I wondered whether there's any way of querying python for a list

Re: Where to locate existing standard encodings in python

2008-11-11 Thread News123
Hi Philip, Your answer touches exaclty one point, which I was slightly afraid of: - The list is not exhaustive - python versions might have implemented different codecs. This is why I wondered whether there's any way of querying python for a list of codecs it supports. thanks again for your and

Re: Where to locate existing standard encodings in python

2008-11-09 Thread Mark Tolonen
"News123" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I was googling quite some time before finding the answer to my question: 'what are the names for the encodings supported by python?' I found the answer at http://python.active-venture.com/lib/node127.html Now my quest

Re: Where to locate existing standard encodings in python

2008-11-09 Thread Philip Semanchuk
On Nov 9, 2008, at 7:00 PM, News123 wrote: Hi, I was googling quite some time before finding the answer to my question: 'what are the names for the encodings supported by python?' I found the answer at http://python.active-venture.com/lib/ node127.html Now my question: Can I find the

Re: Where to locate existing standard encodings in python

2008-11-09 Thread John Machin
On Nov 10, 11:00 am, News123 <[EMAIL PROTECTED]> wrote: > Hi, > > I was googling quite some time before finding the answer to my question: > 'what are the names for the encodings supported by python?' > > I found the answer athttp://python.active-venture.com/lib/node127.html > > Now my question: >

Re: Where to locate existing standard encodings in python

2008-11-09 Thread Tim Chase
I was googling quite some time before finding the answer to my question: 'what are the names for the encodings supported by python?' I found the answer at http://python.active-venture.com/lib/node127.html Now my question: Can I find the same info in the standard python doc or query python with

Where to locate existing standard encodings in python

2008-11-09 Thread News123
Hi, I was googling quite some time before finding the answer to my question: 'what are the names for the encodings supported by python?' I found the answer at http://python.active-venture.com/lib/node127.html Now my question: Can I find the same info in the standard python doc or query python