[BUG] Edit tool corrupts Windows-1252 encoding to UTF-8
Resolved 💬 4 comments Opened Aug 10, 2025 by edlyra Closed Aug 15, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.72
- Operating System: Ubuntu 24.04.2 LTS
- Terminal: VSCode Terminal
Bug Description
The Edit tool automatically converts Windows-1252 encoded files to UTF-8, corrupting accented characters in the process.
Steps to Reproduce
- Open any Windows-1252 encoded file with Portuguese accented characters
- Use Edit tool to make any modification
- File gets automatically converted to UTF-8, corrupting all accented characters throughout the file
Expected Behavior
Edit tool should detect and preserve the original file encoding instead of forcing UTF-8 conversion.
Actual Behavior
The Edit tool automatically converts Windows-1252 encoded files to UTF-8, corrupting accented characters in the process.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗