Home  >  Article  >  Development Tools  >  What to do when opening txt with garbled characters in vscode

What to do when opening txt with garbled characters in vscode

藏色散人
藏色散人Original
2019-11-19 09:36:015732browse

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

What to do when opening txt with garbled characters in vscode

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn