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
/** | |
* Convert a UTF16 string to UTF8. | |
* @param {String} input | |
* @returns {String} | |
*/ | |
utf16To8: function (input) { | |
var _unescape = function(s) { | |
function d(x, n) { | |
return String.fromCharCode(parseInt(n, 16)); | |
} |