JS: String.fromCodePoint (Char ID to Char)
(new in ECMAScript 2015)
String.fromCodePoint(char_id_1, char_id_2, etc)-
create a string from Code Point (Char ID).
/* create string from unicode codepoints */ console.log(String.fromCodePoint(97, 129419)); // a🦋 /* 97 is the codepoint for lowercase letter a 129419 is the codepoint for 🦋 BUTTERFLY */
To easily find a character's codepoint, see Unicode Search 🔎
JavaScript. String, Char, Encoding, Hexadecimal
- JS: String Index Code Unit
- JS: Convert Decimal, Hexadecimal
- JS: String.prototype.codePointAt (Char to Char ID) ❌
- JS: String.fromCodePoint (Char ID to Char)
- JS: Char to UTF-8 Encoding 📜
- JS: Char to UTF-16 Encoding 📜
- JS: String.prototype.charCodeAt (Char to Char ID) ❌
- JS: String.prototype.charAt (Extract Char at Index) ❌
- JS: String.prototype.at (Extract Char at Index)
- JS: String.fromCharCode (Char ID to Char) ❌