Only the first word is saved into a cookie using an “example” code if there is a space in value.
What is a really correct, unicode-compatible way to make that?
response.headers.add_header(
'Set-Cookie',
'%s=%s; expires:Sun, 31-May-2020 23:59:59 GMT; path=/;' % (key, value))
UPD. A solution is below
Finally the job is done:
The code: