Home  >  Article  >  Development Tools  >  Unmappable characters in encoding gbk appear in Notepad++

Unmappable characters in encoding gbk appear in Notepad++

angryTom
angryTomOriginal
2019-08-08 14:24:504570browse

Unmappable characters in encoding gbk appear in Notepad++

notepad When writing code that contains Chinese characters, a compilation error occurs: encoding unmappable characters of GBK.

Unmappable characters in encoding gbk appear in Notepad++

The following will introduce the solution to you.

Recommended tutorial: notepad graphic tutorial

##Method 1

Settings-Preferences Change UTF-8 to ANSI

Then save as to overwrite the original java file and recompile.

Unmappable characters in encoding gbk appear in Notepad++

Method 2

You can also use Notepad to open the source file and save it as ASNI encoding. Method As follows:

When writing in Notepad, save directly as ANSI encoding format, overwrite the source file, and then compile without error

Unmappable characters in encoding gbk appear in Notepad++

The above is the detailed content of Unmappable characters in encoding gbk appear in Notepad++. 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