How to send an email with non-ascii characters in Python

Gabriel B. gabriel.barros at gmail.com
Sat Feb 25 18:49:43 EST 2006


2006/2/25, Sybren Stuvel <sybrenUSE at yourthirdtower.com.imagination>:
> Lad enlightened us with:
> > Body='Rídících Márinka a Školák Kája
> > Marík'.decode('utf8').encode('windows-1250')# I use the text written
> > in my editor with utf-8 coding, so first I decode and then encode to
> > windows-1250

what does a string became when it's decoded?

I mean, it must be encoded in something, right?



More information about the Python-list mailing list