schnurrito@discuss.tchncs.de to xkcd@lemmy.worldEnglish · 20 days agoxkcd #3003: Sandwich Helixxkcd.comexternal-linkmessage-square3fedilinkarrow-up1110arrow-down10file-text
arrow-up1110arrow-down1external-linkxkcd #3003: Sandwich Helixxkcd.comschnurrito@discuss.tchncs.de to xkcd@lemmy.worldEnglish · 20 days 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_f@midwest.sociallinkfedilinkEnglisharrow-up19·20 days 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·20 days agoI thought the garbage symbols were part of the humor of the title.
minus-squarem_f@midwest.sociallinkfedilinkEnglisharrow-up10·20 days 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.