Specifically, this function takes a UTF-8 encoded binary and returns a list of its integer code points. It is similar to codepoints/1 except that the latter returns a list of code points as strings.
In case you need to work with bytes, take a look at the :binary module.
String.to_charlist/1
Converts a string into a charlist.
Specifically, this function takes a UTF-8 encoded binary and returns a list of its integer code points. It is similar to codepoints/1 except that the latter returns a list of code points as strings.
In case you need to work with bytes, take a look at the :binary module.