[BUG] Claude cannot handle certain characters, such as ’ (as opposed to ')
Resolved 💬 2 comments Opened Sep 1, 2025 by jdimmerman Closed Sep 1, 2025
Environment
- Platform (select one):
- [ ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [X] Other: VSCode extension
- Claude CLI version: 1.0.98
- Operating System: Linux (aarch64/ARM64 architecture), kernel 6.10.14-linuxkit
- Terminal: xterm-256color (VSCode)
Bug Description
Claude overwrites certain characters such as ’ with ' when editing files. This can be easily seen in unit testing, wherein the system under test produces a string with ’ and an existing test asserts on the resulting string. Claude will overwrite this character with ', which results in failing tests. this is of course more problematic when the change impacts the system under test itself.
Steps to Reproduce
- Create a function that outputs
Hi, I’m Jason - Write a unit test to assert on the output of the function
- Ask Claude to rename the unit test in Cladue Code
- Claude will overwrite the assertion to
Hi, I'm Jasonand the test will fail. Claude will then spin and sometimes change the function under test to fix the unit test failure
Expected Behavior
Characters are not overwritten.
Actual Behavior
Characters are overwritten.
Additional Context
None
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗