JamesDeCarlo / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Gson should escape \u2028 #341

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Serve a json response containing unicode character \u2028 
2. In javascript, eval("(" + jsonResult + ")")

What is the expected output? 
json is correctly parsed

What do you see instead?
SyntaxError -unterminated string literal

What version of the product are you using? On what operating system?
Firefox and chrome

See also:
http://bulknews.typepad.com/blog/2009/02/json-jquery-and-some-unicode-characters
-u2028.html
https://issues.apache.org/jira/browse/SOLR-1936

Original issue reported on code.google.com by cb...@google.com on 6 Jul 2011 at 6:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r868.

Original comment by limpbizkit on 12 Jul 2011 at 4:05