[erlang-bugs] Unicode characters in binaries cause bad argument error

Kevin Albrecht <>
Tue Feb 21 09:26:33 CET 2012

According to section "Basic language support for Unicode " of the
document "Using Unicode in Erlang"
this syntax can be used to enter Unicode characters in source code:

=> [1024]

This syntax also seems to work in binaries:
=> <<"ÿ">>

But then it fails when the hex value is greater than FF:
=> ** exception error: bad argument

Is this a bug or intended behavior?

Kevin Albrecht

More information about the erlang-bugs mailing list