Re: Encoding questions (continuation)

2013-06-12 Thread Larry Hudson
On 06/12/2013 01:20 AM, Larry Hudson wrote: On 06/11/2013 01:09 PM, Νικόλαος Κούρας wrote: Τη Τρίτη, 11 Ιουνίου 2013 10:52:02 π.μ. UTC+3, ο χρήστης Larry Hudson έγραψε: On 06/10/2013 06:56 AM, Νικόλαος Κούρας wrote: I forgot to specify I'm talking about using Thunderbird Newsgroups, not the E

Re: Encoding questions (continuation)

2013-06-12 Thread Larry Hudson
On 06/11/2013 01:09 PM, Νικόλαος Κούρας wrote: Τη Τρίτη, 11 Ιουνίου 2013 10:52:02 π.μ. UTC+3, ο χρήστης Larry Hudson έγραψε: On 06/10/2013 06:56 AM, Νικόλαος Κούρας wrote: i think your suggestions works only if you have a mail handy in TB and you hit follow-up what if you dont have the mail

Re: OT: e-mail reply to old/archived message (was Re: Encoding questions (continuation))

2013-06-11 Thread Νικόλαος Κούρας
Τη Τρίτη, 11 Ιουνίου 2013 2:21:50 μ.μ. UTC+3, ο χρήστης Andreas Perstinger έγραψε: > > sending the mail to python-list@python.org will just open anew > > subject intead of replyign to an opened thread. > You would need to find out the Message-Id of the post you want to reply > to and then add m

Re: Encoding questions (continuation)

2013-06-11 Thread Νικόλαος Κούρας
Τη Τρίτη, 11 Ιουνίου 2013 10:52:02 π.μ. UTC+3, ο χρήστης Larry Hudson έγραψε: > On 06/10/2013 06:56 AM, Νικόλαος Κούρας wrote: > > > > >>> ps. i tried to post a reply to the thread i opend via thunderbird mail > > >>> client, but not as a reply to somne other reply but as new mail send to > >

Re: Encoding questions (continuation)

2013-06-11 Thread Νικόλαος Κούρας
Τη Τρίτη, 11 Ιουνίου 2013 1:19:25 π.μ. UTC+3, ο χρήστης Lele Gaifax έγραψε: > Maybe he just want to prove we are smart enough... > Or maybe his encoding algorithm needs some refinement > :-) I already knwo you are smart enough, the latter is what needs some more refinement work :-) -- http://

OT: e-mail reply to old/archived message (was Re: Encoding questions (continuation))

2013-06-11 Thread Andreas Perstinger
On 10.06.2013 15:56, Νικόλαος Κούρας wrote: Τη Δευτέρα, 10 Ιουνίου 2013 2:41:07 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: On Mon, 10 Jun 2013 14:13:00 +0300, Νικόλαος Κούρας wrote: ps. i tried to post a reply to the thread i opend via thunderbird mail client, but not as a reply to somne oth

Re: Encoding questions (continuation)

2013-06-11 Thread Larry Hudson
On 06/10/2013 06:56 AM, Νικόλαος Κούρας wrote: ps. i tried to post a reply to the thread i opend via thunderbird mail client, but not as a reply to somne other reply but as new mail send to python list. because of that a new thread will be opened. How can i tell thunderbird to reply to the orig

Re: Encoding questions (continuation)

2013-06-10 Thread Lele Gaifax
Steven D'Aprano writes: >> I did but docs confuse me even more. Can you pleas ebut it simple. > > Nikos, if you can't be bothered to correct your spelling mistakes, why > should we be bothered to answer your questions? Maybe he just want to prove we are smart enough... http://www.foxnews.com/s

Re: Encoding questions (continuation)

2013-06-10 Thread Fábio Santos
On 10 Jun 2013 15:04, "Νικόλαος Κούρας" wrote: > > Τη Δευτέρα, 10 Ιουνίου 2013 2:41:07 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > > On Mon, 10 Jun 2013 14:13:00 +0300, Νικόλαος Κούρας wrote: > > > > > > > > > Τη Δευτέρα, 10 Ιουνίου 2013 1:42:25 μ.μ. UTC+3, ο χρήστης Andreas > > > > > Persting

Re: Encoding questions (continuation)

2013-06-10 Thread Νικόλαος Κούρας
Τη Δευτέρα, 10 Ιουνίου 2013 2:41:07 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: > On Mon, 10 Jun 2013 14:13:00 +0300, Νικόλαος Κούρας wrote: > > > > > Τη Δευτέρα, 10 Ιουνίου 2013 1:42:25 μ.μ. UTC+3, ο χρήστης Andreas > > > Perstinger έγραψε: > > > > > > > >>> s = b'\xce\xb1' > > > > >

Re: Encoding questions (continuation)

2013-06-10 Thread Steven D'Aprano
On Mon, 10 Jun 2013 14:13:00 +0300, Νικόλαος Κούρας wrote: > Τη Δευτέρα, 10 Ιουνίου 2013 1:42:25 μ.μ. UTC+3, ο χρήστης Andreas > Perstinger έγραψε: > > > >>> s = b'\xce\xb1' > > > > >>> s[0] > > > > 206 > > 's' is a byte object, how can you treat it as a string asking to present > you its

Encoding questions (continuation)

2013-06-10 Thread Νικόλαος Κούρας
Τη Δευτέρα, 10 Ιουνίου 2013 1:42:25 μ.μ. UTC+3, ο χρήστης Andreas Perstinger έγραψε: > >>> s = b'\xce\xb1' > > >>> s[0] > > 206 's' is a byte object, how can you treat it as a string asking to present you its first character? > > >>> s[1] > > 177 's' is a byte object, how can you treat i

Re: Encoding Questions

2005-04-19 Thread "Martin v. Löwis"
[EMAIL PROTECTED] wrote: > thanks for the replies. As for why I set my default encoding to utf-8 > in python, I did it a while ago and I think I did it because when I was > reading some strings from database in utf-8 it raised errors b/c there > were some chars it could recongnize in standard encod

Re: Encoding Questions

2005-04-19 Thread jalil
thanks for the replies. As for why I set my default encoding to utf-8 in python, I did it a while ago and I think I did it because when I was reading some strings from database in utf-8 it raised errors b/c there were some chars it could recongnize in standard encoding. When I made the change, the

Re: Encoding Questions

2005-04-19 Thread "Martin v. Löwis"
Kent Johnson wrote: > Something like > data = urllib.url_open(...).read() > unicodeData = data.decode('gb2312') > utf8Data = unicodeData.encode('utf-8') > > You may want to supply the errors parameter to decode() or encode(); see > the docs for details. > http://docs.python.org/lib/string-methods.

Re: Encoding Questions

2005-04-19 Thread vincent wehren
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | 1. I download a page in python using urllib and now want to convert and | keep it as utf-8? I already know the original encoding of the page. | What calls should I make to convert the encoding of the page to utf8? | For example,

Re: Encoding Questions

2005-04-19 Thread Kent Johnson
[EMAIL PROTECTED] wrote: 1. I download a page in python using urllib and now want to convert and keep it as utf-8? I already know the original encoding of the page. What calls should I make to convert the encoding of the page to utf8? For example, let's say the page is encoded in gb2312 (simple chi

Encoding Questions

2005-04-19 Thread jalil
1. I download a page in python using urllib and now want to convert and keep it as utf-8? I already know the original encoding of the page. What calls should I make to convert the encoding of the page to utf8? For example, let's say the page is encoded in gb2312 (simple chinese) and I want to keep