Message60528
The quoting works fine for cookie values, but doesn't kick in for
attributes like Comment.
>>> c = SimpleCookie()
>>> c['foo'] = u'\N{COPYRIGHT SIGN}'.encode('UTF8')
>>> print str(c)
Set-Cookie: foo="\302\251";
>>> c['foo']['comment'] = u'\N{BIOHAZARD SIGN}'.encode('UTF8')
>>> print str(c)
Set-Cookie: foo="\302\251"; Comment=?;
>>> str(c)
'Set-Cookie: foo="\\302\\251"; Comment=\xe2\x98\xa3;'
>>>
|
|
Date |
User |
Action |
Args |
2008-01-20 09:57:01 | admin | link | issue991266 messages |
2008-01-20 09:57:01 | admin | create | |
|