Cursor AI edits corrupt Windows-1252 encoding in C++ projects (even when editor shows 1252)

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:

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. files.encoding, .editorconfig, and .cursorrules do not help because the conversion happens in the apply pipeline, not in the editor.

I’ll share an update when I have news.