109

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

https://explainxkcd.com/3003/

you are viewing a single comment's thread
view the rest of the comments
[-] m_f@midwest.social 19 points 3 weeks 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

[-] style99@lemm.ee 8 points 3 weeks ago

I thought the garbage symbols were part of the humor of the title.

[-] m_f@midwest.social 10 points 3 weeks ago

Totally. My comment was just a note that if you screw up like the alt text is humorously referring to, that's a good tool for fixing it.

this post was submitted on 25 Oct 2024
109 points (100.0% liked)

xkcd

8836 readers
4 users here now

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

founded 1 year ago
MODERATORS