{"version":"2.1.333","anchor":"utf-16le-odd-length-file-refusal-reason","canonical_anchor":"utf-16le-odd-length-file-refusal-reason","heading":"Malformed UTF-16LE files with an odd byte count are no longer read as text","tier":"notice","area":"File Tools","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/utf-16le-odd-length-file-refusal-reason","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Malformed UTF-16LE files with an odd byte count are no longer read as text\n\nFiles that start with a UTF-16LE byte-order mark but have an odd number of bytes are now treated as non-text and refused with a clear reason\n\n**What**\n\nUTF-16LE is a way of storing text in which every character takes an even number of bytes. Files in this format usually start with two marker bytes, `FF FE`, called a byte-order mark. A file that starts with those bytes but has an odd total number of bytes cannot be valid UTF-16LE.\n\n- Claude Code now marks such a file as not text, recorded as `utf16le_odd_length`, instead of trying to decode it.\n\n- When it refuses such a file, it now gives the reason that the file \"starts with the UTF-16LE byte-order mark (FF FE) but has an odd number of bytes\".\n\n**Why**\n\nFiles that only look like UTF-16 are less likely to be read as garbled text, and an edit to one of them now fails with a reason you can understand.\n\n- Area: File Tools\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}