Il 18/03/14 11:07, António Ramos ha scritto:
> hello, i have a controller function
>
> if i call it just by http://app.xx.pt/default/myfunc
>
> if shows the resulting array from myfunc
>
> but if i call it like 
> http://app.xx.pt/default/myfunc.json
> i get the error
> utf8' codec can't decode byte 0xc3 
> I think its because the text  "contruções" in the resulting  array
>
>
>
> How can i tweek it to not give the error?
Hi António,
consider that json string it's a unicode string.
Can this help you?

    M.
>
> thank you
> -- 
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google
> Groups "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to web2py+unsubscr...@googlegroups.com
> <mailto:web2py+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to