[web2py] Re: Encode problem in response.cookies

2014-07-15 Thread Leonel Câmara
Just store it with unicode characters escaped. Easy way to do it since python's json module defaults to ensure_ascii = True. import json unicode_escaped = json.dumps('João') -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source cod

[web2py] Re: Encode problem in response.cookies

2014-07-14 Thread Arthur Alves
Correct, I'm store in session, but i need to store on cookie too, because a script in javascript. I have others manners to do that, but the project owner don't let me change. Em sábado, 12 de julho de 2014 04h47min34s UTC-3, Massimo Di Pierro escreveu: > > I am not 100% sure but why are you sto

[web2py] Re: Encode problem in response.cookies

2014-07-12 Thread Massimo Di Pierro
I am not 100% sure but why are you storing information in cookies when not in session? It is more error prone and does not add anything. Are you disabling sessions for speed somehow? On Friday, 11 July 2014 11:23:13 UTC-5, Arthur Alves wrote: > > Hello guys, > > I have a problem with response.c