[erlang-questions] literal character syntax

Carsten Bormann cabo@REDACTED
Fri May 16 16:42:52 CEST 2014

On 16 May 2014, at 16:35, Loïc Hoguin <essen@REDACTED> wrote:

> unicode character

(I think you mean non-ASCII character, but with the unfortunate detour of Erlang into Latin-1-land maybe you mean non-ISO-8859-1-character.  All characters that Erlang can process are Unicode characters, including ASCII and Latin-1 characters.)

It just works (for single-codepoint characters*), not for composites).

$ erl
Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Eshell V6.0  (abort with ^G)
1> $��.

Grüße, Carsten

*) Characters don’t actually exist, only strings do, but that is a long story.

More information about the erlang-questions mailing list