When a server cuts a field at N characters, which characters?
DEV Community
When a server cuts a field at N characters, which characters?
A JavaScript server that shortens a title counts UTF-16 code units, so it can split an emoji in half, and a Python rebuild by code points stops matching. How to reproduce it, and how to rebuild the cut correctly.
0 comments
No comments yet.