29 Sep 2009 10:25 AM #1
Valid JSon for Internet Explorer
Hi, I'm trying to figure out what's the problem with the attached JSON file when I use it to populate a Tree in Internet Explorer. The file is valid for JSONLint, also it works well with FireFox and Google Chrome.
Any hint? is there a size limit in JSON for IE?
Thanks in advance,
29 Sep 2009 10:43 AM #2
does you check for comas on wrong places?
or test it with a subset of your result, with only 2 or 3 leafs?
29 Sep 2009 10:47 AM #3
Yes, It works with a smaller JSON. Also it is standard compliant, as it was checked in JSonLint and it says it's valid.
29 Sep 2009 10:48 AM #4
29 Sep 2009 10:51 AM #5
Sorry, but what are those non-ascii chars?, how can I escape those?
29 Sep 2009 11:00 AM #6
are there spanish special chars? like char with something in the top or < > or tags / ... something like that
29 Sep 2009 11:01 AM #7
i found a Ì maybe something like that is the problem
29 Sep 2009 11:03 AM #8
Yes there are ñ, Ñ, and accented characters. In this file there isn't <,>, or /. How can I escape those?
29 Sep 2009 11:11 AM #9
There are a number of accented characters (like á or í) in the JSON whose ascii value is bigger than 127. Encoding should be handled by whatever backend is generating your json.
Another issue could also be differing character sets between response headers and actual json body. If your server announces the content to be UTF-8 (charset declaration in the http header, tools like firebug let you check that), make sure to also encode all string in UTF-8 before outputting them as json, the same with any other charset.
29 Sep 2009 11:38 AM #10
- Join Date
- Mar 2007
- Notts/Redwood City
- Vote Rating
What is the actual problem?Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/