Skip to content

FromCharacterCode ​

The character(s) with the given Unicode code point(s) — the inverse of ToCharacterCode.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageFromCharacterCode✓
FromCharacterCode(n)the single character with code point n
FromCharacterCode({n1, n2, …})the string built from each code point, in order
Typed signatures
TypePackageApplies
(integer | list<integer>) -> stringcombinatoricsalways

Domain: Collections

Details

Examples

Basic #
live ↗
InFromCharacterCode(65)\mathrm{FromCharacterCode}(65)Out"A""A"

A list of codes becomes a string, one character per code

live ↗
InFromCharacterCode([97,98,99])\mathrm{FromCharacterCode}(\bigl\lbrack97, 98, 99\bigr\rbrack)Outabc\text{abc}
Scope #
live ↗
InFromCharacterCode(ToCharacterCode(hello))\mathrm{FromCharacterCode}(\mathrm{ToCharacterCode}(\text{hello}))Outhello\text{hello}

round-trips an emoji (astral) and an arrow (BMP) through code points

live ↗
InFromCharacterCode(ToCharacterCode(a😀b→c))\mathrm{FromCharacterCode}(\mathrm{ToCharacterCode}(\text{\text{a😀b$\to$c}}))Outa😀b→c\text{a😀b$\to$c}

A single code gives a one-character string

live ↗
InFromCharacterCode(97)\mathrm{FromCharacterCode}(97)Outa\text{a}
live ↗
InFromCharacterCode([61 726,62 520,62 521,62 522,63 309,63 310,63 311,63 373,63 374,63 375,63 418,63 419,63 420,63 421,63 422,63 423,63 440,63 511,63 512,63 513,63 514,63 515,63 516,63 517])\mathrm{FromCharacterCode}(\bigl\lbrack61\,726, 62\,520, 62\,521, 62\,522, 63\,309, 63\,310, 63\,311, 63\,373, 63\,374, 63\,375, 63\,418, 63\,419, 63\,420, 63\,421, 63\,422, 63\,423, 63\,440, 63\,511, 63\,512, 63\,513, 63\,514, 63\,515, 63\,516, 63\,517\bigr\rbrack)Out\text{\char"F11E{}\char"F438{}\char"F439{}\char"F43A{}\char"F74D{}\char"F74E{}\char"F74F{}\char"F78D{}\char"F78E{}\char"F78F{}\char"F7BA{}\char"F7BB{}\char"F7BC{}\char"F7BD{}\char"F7BE{}\char"F7BF{}\char"F7D0{}\char"F817{}\char"F818{}\char"F819{}\char"F81A{}\char"F81B{}\char"F81C{}\char"F81D{}}
live ↗
InFromCharacterCode([128 512,128 513,128 514,128 515,128 516,128 517,128 518,128 519])\mathrm{FromCharacterCode}(\bigl\lbrack128\,512, 128\,513, 128\,514, 128\,515, 128\,516, 128\,517, 128\,518, 128\,519\bigr\rbrack)Out😀😁😂😃😄😅😆😇\text{😀😁😂😃😄😅😆😇}
Properties #
live ↗
InFromCharacterCode([128 105,127 997,8 205,127 891])\mathrm{FromCharacterCode}(\bigl\lbrack128\,105, 127\,997, 8\,205, 127\,891\bigr\rbrack)Out👩🏽‍🎓\text{👩🏽‍🎓}
About
Examples8
Checked againstWolfram Language 8 agree
CrosswalkWolfram Language

See also: ToCharacterCode