On Jul 30, 8:02 pm, Ferran Fontcuberta <[email protected]> wrote:
> Hello all;
>
> I'm yielding from a func with webpy 0.31 and i'm getting this error:
>
> TypeError: sequence of string values expected, value of type unicode
> found, referer: (url)
>
> If i change my yield statement to a return type(...) it seems to be an
> unicode string, yes, but... ¿Why this is working on the internal server
> and not with apache? :o
Because many Python WSGI servers are not strictly WSGI compliant and
will convert unicode strings to byte strings using default encoding
even when they shouldn't. To satisfy WSGI standard properly, you must
convert your unicode strings to byte string with an appropriate
encoding in the application before returning them.
Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---