Unicode strings: Difference between revisions

Line 545:
 
Strings are UTF-16.
=={{header|Elena}}==
ELENA supports both UTF8 and UTF16 strings, Unicode identifiers are also supported:
 
<lang elena>#import system.
 
#symbol program =
[
#var 四十二 := "♥♦♣♠". // UTF8 string
#var строка := "Привет"w. // UTF16 string
console writeLine:строка.
console writeLine:四十二.
].</lang>
{{out}}
<pre>
Привет
♥♦♣♠
</pre>
 
=={{header|Elixir}}==
Anonymous user