# AI edits corrupt ANSI/Windows-1250 encoding in Delphi .pas files :(((((((

**URL:** <https://forum.cursor.com/t/ai-edits-corrupt-ansi-windows-1250-encoding-in-delphi-pas-files/153252>\
**Category:** Bug Reports\
**Tags:** windows, composer\
**Created:** [February 28, 2026, 4:59pm UTC](https://forum.cursor.com/t/ai-edits-corrupt-ansi-windows-1250-encoding-in-delphi-pas-files/153252 "2026-02-28T16:59:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomasz\_Siedlaczek](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@Tomasz\_Siedlaczek](https://forum.cursor.com/u/Tomasz_Siedlaczek)\
**Post date:** [February 28, 2026, 4:59pm UTC](https://forum.cursor.com/t/ai-edits-corrupt-ansi-windows-1250-encoding-in-delphi-pas-files/153252/1 "2026-02-28T16:59:11Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [March 3, 2026, 9:24pm UTC](https://forum.cursor.com/t/ai-edits-corrupt-ansi-windows-1250-encoding-in-delphi-pas-files/153252/2 "2026-03-03T21:24:47Z")

</div>

Split this topic on March 3, 2026, 9:24pm UTC

8 posts were merged into an existing topic: [Cursor AI edits corrupt Windows-1252 encoding in C++ projects (even when editor shows 1252)](https://forum.cursor.com/t/cursor-ai-edits-corrupt-windows-1252-encoding-in-c-projects-even-when-editor-shows-1252/150701)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [March 3, 2026, 9:27pm UTC](https://forum.cursor.com/t/ai-edits-corrupt-ansi-windows-1250-encoding-in-delphi-pas-files/153252/3 "2026-03-03T21:27:49Z")

</div>

Closed on March 3, 2026, 9:27pm UTC


