Home > Development Tools > VSCode > What to do if opening cpp with vscode displays garbled characters

What to do if opening cpp with vscode displays garbled characters

angryTom
Release: 2020-03-19 15:12:19
Original
7558 people have browsed it

What to do if opening cpp with vscode displays garbled characters

What should I do if the cpp displayed with vscode displays garbled characters?

The default encoding of vscode is UTF-8, when the opened file is not UTF-8 encoded Garbled characters will appear.

The solution is as follows:

Method 1: Click the encoding button in the lower right corner (UTF-8 in the picture), and then select Operation, Reopen with Encoding, search GB 2312.

What to do if opening cpp with vscode displays garbled characters

What to do if opening cpp with vscode displays garbled characters

##Recommended learning:

laravel tutorial

Method 2: Click File->Preferences->Settings, and then enter user settings on the right: "files.autoGuessEncoding": true,

What to do if opening cpp with vscode displays garbled charactersWhat to do if opening cpp with vscode displays garbled characters

Recommended related articles and tutorials:

vscode tutorial

The above is the detailed content of What to do if opening cpp with vscode displays garbled characters. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template