54.65.73.74.20.F0.9F.98.80These bytes are UTF-8 for "Test 😀".
"Test 😀".This is an example of double-encoding: the bytes that were already UTF-8 were interpreted as if they were extended Latin-1 (to be precise, as if they were Unicode code points) and encoded into UTF-8 once again. You can see that by performing an inverse transformation:
$ echo "Test 😀" | iconv -t cp1252 Test 😀
(sorry, <code> tags eat Unicode...)
The real fix would be to check the documentation of the $conn->send_utf8() method. If if unconditionally encodes its input from Perl wide characters into UTF-8 bytes, you can decode the UTF-8 into wide characters before passing the resulting data structure to send_utf8.In reply to Re: Encoding of emoji character
by Anonymous Monk
in thread Encoding of emoji character
by dcunningham
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |