Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Edit and Write explain why they refuse files that are not plain UTF-8

Edit 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

You'll notice Improvements
JSON All of v2.1.333
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
File ToolsArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What

The 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:

  • UTF-16LE files with an odd length, where saving would drop the last byte, so nothing is written
  • UTF-16BE files
  • other files that are not UTF-8
  • files containing NUL characters

The 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.

Why

This stops files in other encodings from being quietly damaged when Claude edits them.

See this entry in the whole of v2.1.333 →

Feedback