#11 can't not support wide byte char like japanese

closed-rejected
nobody
None
5
2010-04-13
2010-04-13
zhou meng
No

when the input string like this "abcd表cdef", the result can't not parse to javascript object.
i add the code below to function parse_string & print_string_ptr it work perfect
if(IsDBCSLeadByte(*ptr)){
*ptr2++ = *ptr++;
*ptr2++ = *ptr++;
continue;
}

Discussion

  • Dave Gamble

    Dave Gamble - 2010-04-13

    I think you're out of spec here. JSON *REQUIRES* UTF-8 encoding, not DBCS.

     
  • Dave Gamble

    Dave Gamble - 2010-04-13
    • status: open --> closed-rejected
     
  • Dave Gamble

    Dave Gamble - 2011-03-14

    Just to confirm. You MUST NOT USE MBCS chars with JSON. JSON is STRICTLY UTF-8.

     

Log in to post a comment.