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