No clue...
On Fri, Aug 19, 2016 at 9:49 AM, António Ramos wrote:
> Its a Post request to my controller. they are not in the url ( I think...)
>
> 2016-08-19 14:34 GMT+01:00 Richard Vézina :
>
>> if you pass json through url to have to parse the string json dump...
>>
>> Richard
>>
>> On Fri, Aug
Its a Post request to my controller. they are not in the url ( I think...)
2016-08-19 14:34 GMT+01:00 Richard Vézina :
> if you pass json through url to have to parse the string json dump...
>
> Richard
>
> On Fri, Aug 19, 2016 at 9:27 AM, António Ramos
> wrote:
>
>> I have started another threa
if you pass json through url to have to parse the string json dump...
Richard
On Fri, Aug 19, 2016 at 9:27 AM, António Ramos wrote:
> I have started another thread called
> How does web2py save JSON fields?
>
> because i think its the json field that is messing my data on save
>
> thank you
>
>
I have started another thread called
How does web2py save JSON fields?
because i think its the json field that is messing my data on save
thank you
2016-08-19 14:03 GMT+01:00 Richard Vézina :
> You have to URL unquote not request.vars http://
> stackoverflow.com/questions/16566069/url-decod
You have to URL unquote not request.vars
http://stackoverflow.com/questions/16566069/url-decode-utf-8-in-python
If you do request.vars.yourvarname what do you have?
You can try request.vars.yourvarname.decode('utf-8')
Richard
On Thu, Aug 18, 2016 at 7:24 PM, António Ramos wrote:
> Sorry
Sorry to insist but cant find any clue.
I tried a simple http post from fiddler or postman
i sent a Post to my controller with
Content-Type: application/json; charset=utf-8
and in the body
{"Sistema de Gestão da Qualidade":1,"b":2}
and i get in request.vars
{u'Sistema de Gest\xe3o\x00 \x00d\x00a
I think it url encoded... Search google about it, it should be obvious
then...
Richard
On Thu, Aug 18, 2016 at 2:12 PM, António Ramos wrote:
> Im getting this data on request.vars from Google forms onsubmit event.
>
> u'Sistema de Gest\xe3o\x00 \x00d\x00a\x00 \x00Q\x00u\x00'
>
> how do i conver
Im getting this data on request.vars from Google forms onsubmit event.
u'Sistema de Gest\xe3o\x00 \x00d\x00a\x00 \x00Q\x00u\x00'
how do i convert it to
"Sistema de Gestão da Qualidade"
i tried urllib.unquote(x).decode('utf-8') in my controller
def getit():
ret={}
for x in request.vars:
8 matches
Mail list logo