Handle Unicode text, emoji, encoding, normalization, code points, and safe storage.
Lessons
Send the right Content-Type charset.
Charset in HTTP Headers is easiest to learn by reading the example, changing it, and observing the result.
# The server should announce the encoding in the HTTP response
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
# In PHP:
# header('Content-Type: application/json; charset=utf-8');
# In Express:
# res.type('application/json'); // Express defaults to utf-8Practice the Charset in HTTP Headers example in a small scratch file, then explain what changed and why.