The AI assistant’s file editing tool (search_replace) cannot preserve the original encoding (GBK/GB2312) when editing files, causing Chinese characters to become garbled.
Steps to Reproduce
Open a JSP file with GBK encoding (file header declares charset=GBK)
Use AI assistant to perform text replacement operations
All Chinese characters in the file become garbled (displayed as ???)
Even with .vscode/settings.json configured for GBK encoding, the issue persists