Created
October 17, 2018 17:30
-
-
Save monkianer/df36390de0649ed201d75bf96ca8e114 to your computer and use it in GitHub Desktop.
Convert Unicode to Chinese
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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