On Wednesday 02 May 2007 15:16, dmhwsm wrote:
> > the template is rendered correctly, but when passing it to the
> > message, i receive encoding errors.
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> > 67: ordinal not in range(128).
>
> once I have had the same error-message (working with an utf-8 encoded
> database)
>
> it was solved by creating the file
> /usr/lib64/python2.4/site-packages/sitecustomize.py
> containing the two following lines :
> import sys
> sys.setdefaultencoding("utf-8")
>
> but this can disturb your non utf-8 python-scripts
Because of this it's a really bad advice. Don't do that!
Diez
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---