Unicode strings: Difference between revisions

Content added Content deleted
Line 595: Line 595:
ELENA supports both UTF8 and UTF16 strings, Unicode identifiers are also supported:
ELENA supports both UTF8 and UTF16 strings, Unicode identifiers are also supported:


ELENA 3.4:
ELENA 4.x:
<lang elena>public program
<lang elena>public program()
{
[
var 四十二 := "♥♦♣♠". // UTF8 string
var 四十二 := "♥♦♣♠"; // UTF8 string
var строка := "Привет"w. // UTF16 string
var строка := "Привет"w; // UTF16 string
console writeLine:строка.
console.writeLine:строка;
console writeLine:四十二.
console.writeLine:四十二;
]</lang>
}</lang>
{{out}}
{{out}}
<pre>
<pre>