Skip to content

Instantly share code, notes, and snippets.

@clowwindy
Created May 9, 2012 11:28
Show Gist options
  • Save clowwindy/2643869 to your computer and use it in GitHub Desktop.
Save clowwindy/2643869 to your computer and use it in GitHub Desktop.
decode escaped unicode
var stringToParse = '\\u4f60\\u8bd5\\u8bd5';
JSON.parse('"'+ stringToParse + '"');
@MRXL0
Copy link

MRXL0 commented Jan 17, 2019

\u4f60\u8bd5\u8bd5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment