# Inline edits break encoding in legacy project (umlauts corrupted, used to work)

**URL:** <https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656>\
**Category:** Bug Reports\
**Created:** [December 17, 2025, 5:02pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656 "2025-12-17T17:02:19Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBG](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@DBG](https://forum.cursor.com/u/DBG)\
**Post date:** [December 17, 2025, 5:02pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/1 "2025-12-17T17:02:19Z")

</div>

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

1. 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 äöüÄÖÜß).
2. 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.
3. 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

 ![Cursor Encoding Bug 2025-12-17.png](https://us1.discourse-cdn.com/cursor1/original/3X/1/d/1df55bc5c5e29e53725771db2f6f859b2d6c41d4.png)

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

---

<div class="post-metadata">

**Author:** ![taump](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/taump/32/91605_2.png) [@taump](https://forum.cursor.com/u/taump)\
**Post date:** [December 17, 2025, 11:45pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/2 "2025-12-17T23:45:10Z")

</div>

Downgrade version is without effect, i think they break it in API edit, i hope they will fix soon.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [December 18, 2025, 6:33am UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/3 "2025-12-18T06:33:49Z")

</div>

Hey, thanks for the report. The encoding issue with AI edits in non-UTF-8 files is a known bug that the team is already tracking.

I’ll pass it to the team for prioritization - legacy encoding support is critical for projects with PRG/ANSI files.

---

<div class="post-metadata">

**Author:** ![taump](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/taump/32/91605_2.png) [@taump](https://forum.cursor.com/u/taump)\
**Post date:** [December 20, 2025, 2:38am UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/5 "2025-12-20T02:38:46Z")

</div>

I found a strange thing about this problem, if I delete the appdata Cursor folder, it fixes it, but of course the settings are gone, but it doesn’t change any strings, but then after a few prompts it breaks again and it overwrites the names again and saves the encoding of the entire file to UTF8 despite the settings I have set, by default I have .cpp files set to ANSI, it’s old code, please fix it, it really didn’t work before.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [December 21, 2025, 10:48am UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/6 "2025-12-21T10:48:20Z")

</div>

Thanks for the extra info about the temporary workaround by deleting the AppData folder. It’s interesting that the issue comes back after a few prompts, and that .cpp files get converted to UTF-8 even though you have ANSI set.

We’re tracking a few related bug reports about encoding being changed during AI edits on non-UTF-8 files.

I’ll keep you posted once we have a fix.

---

<div class="post-metadata">

**Author:** ![DBG](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@DBG](https://forum.cursor.com/u/DBG)\
**Post date:** [January 2, 2026, 1:39pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/7 "2026-01-02T13:39:30Z")

</div>

Sorry to bother you, but is there any news yet?

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [January 2, 2026, 2:34pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/8 "2026-01-02T14:34:25Z")

</div>

Hey, thanks for following up.

The encoding issue is still being tracked by the team - it’s in our backlog but I don’t have a specific timeline for the fix yet.

I’ll update this thread when we have news on the fix.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [January 24, 2026, 2:34pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/9 "2026-01-24T14:34:52Z")

</div>

Closed on January 24, 2026, 2:34pm UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.

---

<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:** [February 3, 2026, 8:29pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/11 "2026-02-03T20:29:36Z")

</div>

Hey all!

Happy to report that this should be fixed when 2.5 comes out.

---

<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:** [February 3, 2026, 8:29pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/12 "2026-02-03T20:29:40Z")

</div>

Opened on February 3, 2026, 8:29pm UTC



---

<div class="post-metadata">

**Author:** ![DBG](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@DBG](https://forum.cursor.com/u/DBG)\
**Post date:** [February 18, 2026, 8:28am UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/13 "2026-02-18T08:28:27Z")

</div>

Can anyone confirm whether the encoding problem has been fixed in the current version dated February 17, 2026? In any case, it is not listed as a bug fix in the official changelog.

---

<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:** [February 18, 2026, 5:24pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/14 "2026-02-18T17:24:51Z")

</div>

Not everything makes it into the changelog, but this should be fixed. Please try reproducing on 2.5 and let us know!

---

<div class="post-metadata">

**Author:** ![DBG](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@DBG](https://forum.cursor.com/u/DBG)\
**Post date:** [February 19, 2026, 2:06pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/15 "2026-02-19T14:06:31Z")

</div>

The bug is NOT fixed.

Version: 2.5.17 (user setup)  
VSCode Version: 1.105.1  
Commit: 7b98dcb824ea96c9c62362a5e80dbf0d1aae4770  
Date: 2026-02-17T05:58:33.110Z  
Build Type: Stable  
Release Track: Default  
Electron: 39.3.0  
Chromium: 142.0.7444.265  
Node.js: 22.21.1  
V8: 14.2.231.22-electron.0  
OS: Windows\_NT x64 10.0.19045

---

<div class="post-metadata">

**Author:** ![DBG](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@DBG](https://forum.cursor.com/u/DBG)\
**Post date:** [February 19, 2026, 2:26pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/16 "2026-02-19T14:26:33Z")

</div>

I need help.

I tried to downgrade back to 2.3.41.

But after installing the 2.3 setup an restarting cursor IDE I’m back in version 2.5.

I guess the update is cached somwhere and is automatically applied.

Please help me to get back to version 2.3.41!

---

<div class="post-metadata">

**Author:** ![DBG](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@DBG](https://forum.cursor.com/u/DBG)\
**Post date:** [February 19, 2026, 3:33pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/17 "2026-02-19T15:33:22Z")

</div>

It’s getting worse and worse. I was able to use an older version again by uninstalling cursor, but the problem still persists. Previously, downgrading had helped. Perhaps there are settings or files in the user profile folder %appdata% that are still causing the problem?

---

<div class="post-metadata">

**Author:** ![DBG](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@DBG](https://forum.cursor.com/u/DBG)\
**Post date:** [February 19, 2026, 4:05pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/18 "2026-02-19T16:05:07Z")

</div>

I’ve fixed it for now. Here’s a tip in case anyone else has this problem. I don’t know if all the steps are necessary, but it worked for me.

1. Uninstall Cursor
2. Install the desired version (2.3)
3. Open _%appdata%_ in Windows Explorer and rename the Cursor folder to Cursor.bak
4. Start Cursor and set Update Mode to manual in the settings
5. Certain settings have been lost, e.g., key bindings

---

<div class="post-metadata">

**Author:** ![DBG](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@DBG](https://forum.cursor.com/u/DBG)\
**Post date:** [February 27, 2026, 11:26am UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/20 "2026-02-27T11:26:31Z")

</div>

Another tip that will hopefully help fix the encoding bug.

I’m working with 2.3.41, but after a while the encoding problem reappears here too. When I delete the cursor folder in %appdata%, it works again for a while.

I tried to pinpoint it to a specific file in the profile, but unfortunately without success. Do you have any tips for me?

I’m not sure when it happens, but possibly when I edit ANSI and UTF8 files in two projects (windows) at the same time.

Thanks

---

<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:28pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/21 "2026-03-03T21:28:24Z")

</div>

Hey all!

Moving the conversation over here.

> [@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/55):
>
> Hey, thanks for the report. This is a known issue. AI edits convert non-UTF-8 files to UTF-8 when saving. A few threads on the same topic: [Windows-1252 corruption in C++](https://forum.cursor.com/t/150701)[search\_replace tool corrupts ANSI/Windows-1252](https://forum.cursor.com/t/148993)[Inline edits break encoding in legacy project](https://forum.cursor.com/t/146656) There was a fix in 2.5, but based on user reports it did not fully solve the issue. I’ll pass to the team that the bug is still reproducible on 2.5.26 with Windows-1250 encoding. Unfortunately, there is no reliable workaround yet. f…

---

<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:28pm UTC](https://forum.cursor.com/t/inline-edits-break-encoding-in-legacy-project-umlauts-corrupted-used-to-work/146656/22 "2026-03-03T21:28:26Z")

</div>

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


