[erlang-questions] Unicode character constants

Richard Carlsson richardc@REDACTED
Mon Jun 15 15:03:29 CEST 2009


Thomas Lindgren wrote:
> I'm wondering about whether unicode character constants should be
> permitted.. Today they seem not to be allowed, but that might be an
> oversight. E.g.,
> 
> 14> $å. * 1: syntax error before: '\245'
> 
> So, design decision (why?) or bug?

What Erlang version are you using, and what encoding is your
terminal using? \245 is weird - å should be \345.

With R12B10 and a gnome terminal in UTF-8 mode:

4> $å.
229
5>

    /Richard


More information about the erlang-questions mailing list