Re: [Tutor] i18n Encoding/Decoding issues

2006-08-14 Thread Kent Johnson
Jorge De Castro wrote: > Hi all, > > It seems I can't get rid of my continuous issues i18n with Python :( > You're not alone :-) > I've been through: > http://docs.python.org/lib/module-email.Header.html > and > http://www.reportlab.com/i18n/python_unicode_tutorial.html > to no avail. > Try t

Re: [Tutor] i18n Encoding/Decoding issues

2006-08-10 Thread Danny Yoo
On Thu, 10 Aug 2006, anil maran wrote: > how do u find out original encoding Read: http://www.joelonsoftware.com/articles/Unicode.html In short: there's no good, reliable way to guess the encoding. But there should be no need to guess: a proper document will have the encoding explici

Re: [Tutor] i18n Encoding/Decoding issues

2006-08-10 Thread anil maran
how do u find out original encodingthanksMichael Lange <[EMAIL PROTECTED]> wrote: Hi Jorge,On Thu, 10 Aug 2006 13:32:10 +0100"Jorge De Castro" <[EMAIL PROTECTED]> wrote:(...)> > Using unicode(body, 'latin-1').encode('utf-8') doesn't work either. Besides, > am I the only one to feel that if I want t

Re: [Tutor] i18n Encoding/Decoding issues

2006-08-10 Thread Michael Lange
Hi Jorge, On Thu, 10 Aug 2006 13:32:10 +0100 "Jorge De Castro" <[EMAIL PROTECTED]> wrote: (...) > > Using unicode(body, 'latin-1').encode('utf-8') doesn't work either. Besides, > am I the only one to feel that if I want to encode something in UTF-8 it > doesn't feel intuitive to have to conve

[Tutor] i18n Encoding/Decoding issues

2006-08-10 Thread Jorge De Castro
Hi all, It seems I can't get rid of my continuous issues i18n with Python :( I've been through: http://docs.python.org/lib/module-email.Header.html and http://www.reportlab.com/i18n/python_unicode_tutorial.html to no avail. Basically, I'm receiving and processing mail that comes with content (fr