When an rpc json call returns escaped unicode  from python (something like 
\u00e8), how do I  decode in javascript those escaped characters? (Is it 
really as complicated as indicated here:  
http://www.rishida.net/tools/conversion/conversionfunctions.js)

I tried the rpc functions at http://rpc4django.davidfischer.name/ . 
Mytestmethod with special characters. It returns escaped unicode, so è + à 
+ é gives  "\u00e8\u00e0\u00e9". How do I transform that into characters 
that I can display on the page in, say, a textarea? I'm assuming this has 
to be done on the javascript side. 

from rpc4django: 

{
"id": "djangorpc",
"method": "rpc4django.mytestmethod",
"params": [
   "è","à","é"
]
}

I get  {"result": "\u00e8\u00e0\u00e9", "id": "djangorpc", "error": null}


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/dseoeE5uStgJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to