Unicode strings: Difference between revisions
Content added Content deleted
(Nimrod -> Nim) |
(Added LFE example) |
||
Line 715:
♦
9824</pre>
=={{header|LFE}}==
As with Erlang, LFE allows Unicode in comments/data/file names/etc, but not in function or variable names.
Here is example UFT-8 encoding:
<lang lisp>
> (set encoded (binary ("åäö ð" utf8)))
#B(195 165 195 164 195 182 32 195 176)
</lang>
Display it in native Erlang format:
<lang lisp>
> (io:format "~tp~n" (list encoded))
<<"åäö ð"/utf8>>
</lang>
Example UFT-8 decoding:
<lang lisp>
> (unicode:characters_to_list encoded 'utf8)
"åäö ð"
</lang>
=={{header|Locomotive Basic}}==
|