The number one rule of string manipulation is that you’ve got to specify your encodings.
xkcd #3003: Sandwich Helix
Submitted 3 weeks ago by schnurrito@discuss.tchncs.de to xkcd@lemmy.world
Submitted 3 weeks ago by schnurrito@discuss.tchncs.de to xkcd@lemmy.world
The number one rule of string manipulation is that you’ve got to specify your encodings.
m_f@midwest.social 3 weeks ago
FYI if you get mojibake like in the alt text, this is a great tool for automatically fixing it:
github.com/rspeer/python-ftfy
style99@lemm.ee 3 weeks ago
I thought the garbage symbols were part of the humor of the title.
m_f@midwest.social 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.