JavaScript: String.fromCodePoint
New in JS2015.
String.fromCodePoint(codepoint1, codepoint2 etc)
-
Return a string, each character corresponds to the
Codepoint
in argument.
// create string from unicode codepoints console.log(String.fromCodePoint(97, 128514) === "aπ"); // 97 is the codepoint for letter βaβ // 128514 is the codepoint for the char π FACE WITH TEARS OF JOY
To easily find a character's codepoint, see Unicode Search π