[BUG] Edit and Write tools automatically convert files to UTF-8
Resolved 💬 3 comments Opened Nov 4, 2025 by dobromirmarkov92-ctrl Closed Jan 9, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using Claude code in PhPStorm the Edit tool converts Wndows-1251 to UTF-8 and then the whole file is messed up.
What Should Happen?
The encoding of the file should not be converted(not only when using 1251).
Error Messages/Logs
Steps to Reproduce
1.Create PHP file with Windows-1251 or other encoding.
2.Ask Claude code to make some changes in it.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Version: 2.0.32
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
IntelliJ IDEA terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗