In this particular case (where it is Latin1) you can use built in function instead of @kip’s code:
:unicode.characters_to_binary("Bient\xf4t", :latin1)
And you are good to go.
In this particular case (where it is Latin1) you can use built in function instead of @kip’s code:
:unicode.characters_to_binary("Bient\xf4t", :latin1)
And you are good to go.