Side navigation
#9340 closed bug (duplicate)
Opened May 19, 2011 12:12AM UTC
Closed May 19, 2011 01:03AM UTC
Last modified May 19, 2011 09:23AM UTC
Unable to pass payload containing ?? via ajax call
Reported by: | jabley | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | ajax | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
jQuery 1.5.2
Firefox 4.0.1, Mac OSX Snow Leopard
Firefox 3.6, Windows XP
Attempting to pass a JSON payload via AJAX which contains the string ?? gets treated as a JSONP request and the ajax error function is called, stating that
"jQuery152011057530349834899_1305758039649 was not called"
See http://jsfiddle.net/FtX2g/
and
https://gist.github.com/979756
On IRC, I was advised to use the Javascript escape function on the client, and decode server-side. This feels clunky and also has problems with codepoints unsuitable for transmission in a Latin-1 encoding.
If you change the linked jsfiddle test to use jQuery 1.6, the test passes.
Any plans for further 1.5.x releases, or should I begin to upgrade to 1.6.x?