did you look into http://code.google.com/p/jquery-json/issues/detail?id=43
?

json.loads in web2py fits well with unicode .... maybe it's jquery-
json and browser implementation that screws something up.

On 26 Gen, 20:51, Marin Pranjic <[email protected]> wrote:
> It's not web2py related, but I hope someone can help me.
>
> I'm sending data via ajax, which is urlencoded JSON object (I used
> jquery-json).
> Then, I use json.loads(variable) to load the object.
>
> Everything works good for normal ASCII characters, but if I send non-
> ascii chars, i get the following:
>
> UnicodeDecodeError: 'utf8' codec can't decode byte 0x9a in position 2:
> invalid start byte
>
> I need to write data into database, and replacing non-ascii with some
> ascii chars is not an option, i need exact match.
>
> Hope you understand... :)

Reply via email to