Skip to content

Instantly share code, notes, and snippets.

@monkianer
Created October 17, 2018 17:30
Show Gist options
  • Save monkianer/df36390de0649ed201d75bf96ca8e114 to your computer and use it in GitHub Desktop.
Save monkianer/df36390de0649ed201d75bf96ca8e114 to your computer and use it in GitHub Desktop.
Convert Unicode to Chinese
var str= '\u6e2c\u8a66';
var msg = unescape(str.replace(/\\u/g, '%u'));
// -> 測試
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment