Hey, thanks for the report. This is a known issue. Agent always saves edited files as UTF-8 and ignores the original encoding.
Related threads: Encoding changing when editing EUC-KR files (EUC-KR), Cursor returns UTF-8 code despite Windows-1252 configuration (Windows-1252)
Temporary workaround:
- After Agent edits: bottom-right corner of the editor → click the encoding → “Reopen with Encoding” → GBK
- Then “Save with Encoding” → GBK
- Or try
CTRL+K(inline edit) instead of Agent/Chat. It might break the encoding less, but no guarantee
The team is aware. Your report helps raise the priority.