> try:
>     v = v.encode("iso-8859-1")
> except UnicodeEncodeError:
>     if cherrypy.response.protocol >= (1, 1):
>         # Encode RFC-2047 TEXT
>         # (e.g. u"\u8200" -> "=?utf-8?b?6IiA?=").
>         v = email.Header.Header(v, 'utf-8').encode()
>     else:
>         raise

Thanks for your reply! Think i get the point.

Doesn't seem as simple as adapting the code in sorted_list in the
definition of the HeaderMap class (for CP 2.2.1). You changed quite a
bit more up the way to CP 3. I'll try to check that out when i'm back.

Chris


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to