Re: [web2py] request.args encoding

2016-07-27 Thread Martin Weissenboeck
Try URL('action', vars=dict(arg0='a#b', arg1='a:b')) Am 27.07.2016 14:33 schrieb "Mirek Zvolský" : > > If I use > URL('action', args=("a#b", "a:b")) > > I will receive > request.args == ['a_b', 'a_b'] > > So I need to use something like base64.b32encode() for each one item from args. > > > Probabl

[web2py] request.args encoding

2016-07-27 Thread Mirek Zvolský
If I use URL('action', args=("a#b", "a:b")) I will receive request.args == ['a_b', 'a_b'] So I need to use something like base64.b32encode() for each one item from args. Probably this is "by design" behaviour, but I'm curious why is it so? urllib.quote / .unqoute returns the original value a#