Unicode strings: Difference between revisions

PascalABC.NET
(add link to a Tom Scott video)
(PascalABC.NET)
 
Line 1,147:
 
The internal Unicode string representation is plane Unicode without any encodings. Two builtin functions support UTF-8 encoding ('string->bytes' and 'bytes->string').
 
=={{header|PascalABC.NET}}==
<syntaxhighlight lang="delphi">
begin
var κοστούμι := '♥♦♣♠';
Print(κοστούμι);
var 数学 := '∂∉∑∜';
Print(数学);
end.
</syntaxhighlight>
{{out}}
<pre>
♥♦♣♠ ∂∉∑∜
</pre>
 
 
=={{header|Perl}}==
217

edits