Tool behavior issues when processing EUC-KR files and saving in Korean

Where does the bug appear (feature/product)?

BugBot

Describe the Bug

The cursor’s document encoding is EUC-KR, but when the AI ​​Agent requests it, it is written in UTF-8, causing all Korean characters to be corrupted.

Reported via email, but no fix was found.

Steps to Reproduce

If you are asked to input ‘가나다라마바사’ in EUC-KR encoding, it is encoded in UTF-8 and cannot be recognized.

Expected Behavior

Even though the encoding in the cursor and vscode options is set to EUC-KR, it doesn’t seem to be recognized.

Requesting a modification to a specified section using the Ctrl+K hotkey correctly modifies the document.

Operating System

Windows 10/11

Version Information

Version: 2.5.20 (system setup)
VSCode Version: 1.105.1
Commit: 511523af765daeb1fa69500ab0df5b6524424610
Date: 2026-02-19T20:41:31.942Z
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.26200

For AI issues: which model did you use?

Agent status.

Additional Information

I’m using Cursor Pro, but this feature is currently preventing me from using it properly.

I feel like I’ve wasted my money.

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report. This is a known issue. Agent ignores the file’s original encoding and saves everything as UTF-8, which breaks non-UTF-8 characters, in your case EUC-KR.

Related threads:

A fix shipped in 2.5, but we’re still hearing that it may not be fully resolved. I’ve passed this to the team, your report helps us prioritize it.

Workarounds:

  1. Use Ctrl+K (inline edit) instead of Agent when editing EUC-KR files. You’ve already noticed this works correctly.
  2. If you do use Agent, after editing click the encoding in the bottom-right of the editor, then choose “Reopen with Encoding” → EUC-KR, then “Save with Encoding” → EUC-KR. Note: this may not fully recover the file if Agent already corrupted characters on its side.

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