Strings in Elixir are represented internally by contiguous sequences of bytes known as binaries.
1
2
3
4
5
6
iex>is_binary("hello")trueiex>byte_size("hellö")# ö is not utf-86iex>String.length("hellö")5
When Elixir sees a list of printable ASCII numbers, Elixir will print that as a charlist (literally a list of characters). Charlists are quite common when interfacing with existing Erlang code.