Anonymous user
Character codes: Difference between revisions
→{{header|Scala}}
(Added LFE example) |
|||
Line 880:
=={{header|Scala}}==
[[Category:Scala Implementations]]
{{libheader|Scala}}
Scala supports unicode characters, but each character is UTF-16, so
there is not a 1-to-1 relationship for supplementary character sets.
Line 885 ⟶ 887:
Without worrying about supplemental character sets:
<lang scala>scala> 'a' toInt
scala> 97 toChar
scala> '\u0061'
res4: Char = a</lang>
Worrying about supplemental character sets, we need to test the "next" character as well:
|