Unicode apostrophes get replaced with ASCII apostophes in all edits

When editing source code that contains instances of (U+2019 RIGHT SINGLE QUOTATION MARK), all edits made by cursor, even to unrelated parts of the code, replace all instances with ' (U+0027 APOSTROPHE).

(See Apostrophe - Wikipedia)

This makes cursor unusable on such files, since it creates hundreds of unrelated edits that all have to be declined one by one.

Before

00000000  4c 65 74 e2 80 99 73 20  74 72 79 20 73 6f 6d 65  |Let...s try some|

After

00000000  4c 65 74 27 73 20 74 72  79 20 73 6f 6d 65 74 68  |Let's try someth|
9 Likes

Check out Inability to work with files with smart/curly quotes/apostrophes. Basically Anthropic’s models seem to be incapable of outputting smart quotes/apostrophes, confirmed by Anthropic here.

wouldn’t it be possible for cursor to work around that by detecting irrelevant apostrophe changes and ignoring them?