Describe the Bug
I’m working on a legacy Windows project (PRG files, old single‑byte codepage, not UTF‑8) using Cursor. Since one of the recent updates, AI inline edits started to corrupt the encoding in the edited regions: umlauts in comments and string literals turn into ? or weird characters (e.g. WerksauftrΣgen instead of Werksaufträgen).
Before that update, the exact same inline edits on the same files were applied without any encoding issues. Now it looks like Cursor writes patched parts in UTF‑8 while the file on disk is still in an ANSI/Windows‑1252 style encoding.
Steps to Reproduce
- Open a legacy .prg file in an external editor (e.g. Notepad++) that is encoded as OEM 850 / ANSI, not UTF‑8, and contains German umlauts in comments/strings (e.g. für äöüÄÖÜß).
- In Cursor/VS Code, set the file encoding for this workspace to CP437 (Status bar → Encoding → Reopen/Save with CP437), open the same .prg file, and use an AI inline edit to modify a line containing umlauts (for example a msgbox(“…für äöüÄÖÜß”)); accept the patch and save.
- Reload the file in Notepad++ (still using OEM 850 / ANSI) and compare: unchanged lines still show correct umlauts, but lines touched by the Cursor inline edit now show garbled characters instead of umlauts, indicating that the patch corrupted the encoding despite the CP437 setting.
Expected Behavior
With the same project and the same VS Code/Cursor encoding settings (CP437), inline AI edits on these .prg files used to work without any encoding issues: umlauts and other non‑ASCII characters in comments and string literals remained byte‑identical, and the legacy OEM‑850/ANSI files stayed intact. The current behavior should match that previous state again – applying an inline edit must not change the underlying encoding or corrupt characters anywhere outside the actual text changes.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.2.20 (user setup)
VSCode Version: 1.105.1
Commit: b3573281c4775bfc6bba466bf6563d3d498d1070
Date: 2025-12-12T06:29:26.017Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.19045
Does this stop you from using Cursor
Yes - Cursor is unusable
