Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The cause has been identified: the file defaultRoute/index.vue on the disk is no longer valid UTF-8 (Chinese characters were written as garbled text like ɨ· or ??). The dropdown text returned by the backend, “WeChat · …”, remains valid UTF-8, so only the hardcoded Chinese text in the page would turn into ``.
I have rewritten the entire file rxky-ui/src/views/payment/defaultRoute/index.vue to UTF-8 (without BOM) using Python based on Unicode code points, and corrected the parentheses, periods, and semicolons (previously mistakenly written as ?? in the original script). Currently, reading this file within the working directory, the title, description, SCENE_DESC, buttons, and $message text are all normal Chinese.
Please do it locally:
After saving/pulling the index.vue, run npm run dev or rebuild. Force-refresh the browser (Ctrl+F5) to avoid caching old chunks. Confirm the file encoding is UTF-8 in the bottom-right corner of Cursor/VS Code. The root directory already has .editorconfig with charset = utf-8. If the file still displays garbled text upon saving, check for any formatting/save plugins that might alter the encoding. If AI patches later cause garbled text in this file, avoid repeatedly overwriting it with “Chinese-containing patches” on Windows. Temporarily use a script containing only ASCII to generate Chinese content and write it back, or reopen the source file in the editor locally via “Reopen with Encoding” to verify the byte sequence is UTF-8
Steps to Reproduce
The agent-generated code is saved as GBK, but I need UTF-8. No matter what I try, it doesn’t work
Expected Behavior
The code and Chinese that I want to generate are UTF-8
Operating System
Windows 10/11
Version Information
Version: 3.1.17 (user setup)
VSCode Version: 1.105.1
Commit: fce1e9ab7844f9ea35793da01e634aa7e50bce90
Date: 2026-04-19T19:33:58.189Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.19044
For AI issues: which model did you use?
auto
Does this stop you from using Cursor
No - Cursor works, but with this issue