this post was submitted on 25 Oct 2024
0 points (NaN% liked)

xkcd

17586 readers
277 users here now

A community for a webcomic of romance, sarcasm, math, and language.

founded 3 years ago
MODERATORS
 

The number one rule of string manipulation is that you’ve got to specify your encodings.

https://explainxkcd.com/3003/

top 1 comments
sorted by: hot top controversial new old
[–] m_f@midwest.social 1 points 2 years ago

FYI if you get mojibake like in the alt text, this is a great tool for automatically fixing it:

https://github.com/rspeer/python-ftfy