Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: [2.2] JSON decoding is broken on some unicode chars

  1. #11
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    40
    Vote Rating
    0
      0  

    Default

    Thanks for this thread - I was having the same problem and it let me to json2.js (http://www.json.org/js.html). I'm now using that instead of Ext.decode and the problem with invalid chars is solved.

  2. #12
    Ext User
    Join Date
    Nov 2007
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Same here, thanks for this thread. I was having problems with this:

    Code:
    var test = Ext.util.JSON.decode('{"name":"james\nwright"}');
    Get an unterminate string error, after using the json2 library's encode all is fine

    Code:
    var test = JSON.parse('{"name":"james\nwright"}');
    James.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •