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

https://explainxkcd.com/3003/

19 points

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

permalink
report
reply
8 points

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

permalink
report
parent
reply
10 points

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.

permalink
report
parent
reply

xkcd

!xkcd@lemmy.world

Create post

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

Community stats

  • 1.7K

    Monthly active users

  • 256

    Posts

  • 5.8K

    Comments

Community moderators