Message60528
| Author | zenzen |
|---|---|
| Recipients | |
| Date | 2004-07-15.00:17:04 |
| SpamBayes Score | |
| Marked as misclassified | |
| Message-id | |
| In-reply-to |
| Content | |
|---|---|
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;'
>>>
|
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008-01-20 09:57:01 | admin | link | issue991266 messages |
| 2008-01-20 09:57:01 | admin | create | |