Groovy.
It looks like setting the charset class attribute of a request subclass is
deprecated, yet the documentation advises this
at https://docs.pylonsproject.org/projects/pyramid/1.1/narr/webob.html#unicode
Setting charset as an instance variable on my Request subclass instance
worked though:
class RequestWithUser(Request):
def __init__(self, *args, **kwargs):
Request.__init__(self, *args, **kwargs)
self.charset = 'utf-8'
And I had to switch to using webhelpers.util.html_escape instead of
webhelpers.html.escape.
-- Jason
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pylons-discuss/-/SsMIiV3jLYcJ.
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/pylons-discuss?hl=en.