{"version":"2.1.333","anchor":"file-readwrite-refuses-non-utf-8-files-with-explanatory-mes","canonical_anchor":"file-readwrite-refuses-non-utf-8-files-with-explanatory-mes","heading":"Edit and Write explain why they refuse files that are not plain UTF-8","tier":"notice","area":"File Tools","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/file-readwrite-refuses-non-utf-8-files-with-explanatory-mes","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Edit and Write explain why they refuse files that are not plain UTF-8\n\nEdit and Write now refuse UTF-16, non-UTF-8 and NUL-containing files with reworked messages telling Claude to use a shell command or ask you\n\n**What**\n\nThe messages Claude Code gives when a file is not in plain UTF-8 text have been reworked. UTF-8 is the most common way of storing text. The messages now cover:\n\n- UTF-16LE files with an odd length, where saving would drop the last byte, so nothing is written\n\n- UTF-16BE files\n\n- other files that are not UTF-8\n\n- files containing NUL characters\n\nThe Edit and Write tools refuse these files. They tell Claude to use a shell command instead or ask you, and never to convert a file's encoding on its own.\n\n**Why**\n\nThis stops files in other encodings from being quietly damaged when Claude edits them.\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"}