A function from k.ken's response:
function unicodeToChar(text) {
return text.replace(/\u[dA-F]{4}/gi,
function (match) {
return String.fromCharCode(parseInt(match.replace(/\u/g, ''), 16));
});
}
Takes all unicode characters in the inputted string, and converts them to the character.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…