Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
AI edits corrupt ANSI/Windows-1250 encoding in Delphi7 .pas files
Steps to Reproduce
When Cursor AI edits .pas (Delphi7) files that use ANSI/Windows-1250 encoding, it saves them as UTF-8. Polish and other non-ASCII characters get corrupted.
Expected Behavior
Detect original file encoding on open and save in the same encoding.
Actual: Files are converted to UTF-8 on save, corrupting characters.
Operating System
Windows 10/11
Version Information
Version: 2.5.26 (user setup)
VSCode Version: 1.105.1
Commit: 7d96c2a03bb088ad367615e9da1a3fe20fbbc6a0
Date: 2026-02-26T04:57:56.825Z
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.19045
For AI issues: which model did you use?
Composer 1.5
Additional Information
AI edits corrupt ANSI/Windows-1250 encoding in Delphi 7.pas files :((((((
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor