schnurrito@discuss.tchncs.de to xkcd@lemmy.worldEnglish · 2 months agoxkcd #3003: Sandwich Helixxkcd.comexternal-linkmessage-square3fedilinkarrow-up1112arrow-down10file-text
arrow-up1112arrow-down1external-linkxkcd #3003: Sandwich Helixxkcd.comschnurrito@discuss.tchncs.de to xkcd@lemmy.worldEnglish · 2 months agomessage-square3fedilinkfile-text
The number one rule of string manipulation is that you’ve got to specify your encodings. https://explainxkcd.com/3003/
minus-squarem_flinkfedilinkEnglisharrow-up19·2 months agoFYI if you get mojibake like in the alt text, this is a great tool for automatically fixing it: https://github.com/rspeer/python-ftfy
minus-squarestyle99@lemm.eelinkfedilinkEnglisharrow-up8·2 months agoI thought the garbage symbols were part of the humor of the title.
minus-squarem_flinkfedilinkEnglisharrow-up10·2 months agoTotally. 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.
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
I thought the garbage symbols were part of the humor of the title.
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.