Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gson should escape \u2028 #341

Closed
GoogleCodeExporter opened this issue Mar 19, 2015 · 1 comment
Closed

Gson should escape \u2028 #341

GoogleCodeExporter opened this issue Mar 19, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant