Unicode strings: Difference between revisions

added Ol
(added Ol)
Line 1,019:
 
All methods on strings are UTF8 manipulations.
 
=={{header|Ol}}==
 
* How easy is it to present Unicode strings in source code?
 
Easy. Just write the Unicode characters. Or, use "\x...;" key sequence if you wish.
 
* Can Unicode literals be written directly, or be part of identifiers/keywords/etc?
 
Yes, it can. Moreover, in source codes widely used short "λ" (Unicode lambda character) instead of wide "lambda" keyword, that is part of language.
 
* How well can the language communicate with the rest of the world?
 
FFI language extension automatically converts strings into external ansi or UTF-16 strings (and vice versa).
 
* Is it good at input/output with Unicode?
 
Yes.
 
* Is it convenient to manipulate Unicode strings in the language?
 
Pretty well. There are no different string functions for ANSI and Unicode strings. Only way to differ Unicode and ANSI is to check directly the string type (for ANSI it's type-string and for Unicode type-unicode).
 
* How broad/deep does the language support Unicode?
 
Deep.
 
* What encodings (e.g. UTF-8, UTF-16, etc) can be used?
 
The internal Unicode string representation is plane Unicode without any encodings. Two builtin functions support UTF-8 encoding ('string->bytes' and 'bytes->string').
 
 
=={{header|Perl}}==