Home >Development Tools >VSCode >What to do when opening txt with garbled characters in vscode
What should I do if I open txt with garbled characters in vscode?
Question:
As shown in the figure, use vscode to open a txt file containing Chinese characters. The Chinese garbled characters are already utf-8
Solution:
Generally speaking, it is an encoding problem. Click "utf-8" below, select "Reopen with encoding", select "GBK" and other common encodings in Windows to try.
Related recommendations: "vscode tutorial"
The above is the detailed content of What to do when opening txt with garbled characters in vscode. For more information, please follow other related articles on the PHP Chinese website!