File handles expect bytes by default.
You're providing Unicode Code Points.
Converting text to bytes is called encoding. You told the other end you were providing UTF-8, but you never applied this encoding.
But what is the difference between ":encoding(UTF-8)" and ":utf8"?
`:encoding(UTF-8)` vs `:encoding(utf8)` vs `:utf8`
In reply to Re^5: Another Unicode/emoji question
by ikegami
in thread Another Unicode/emoji question
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |