Home > Common Problem > body text

How to modify gbk character set in eclipse

anonymity
Release: 2020-09-18 14:25:18
Original
8186 people have browsed it

How to modify the gbk character set in eclipse: first start eclipse; then click the [windows], [preference], and [content type] options in sequence; finally enter the character set in the [default encoding] position.

How to modify gbk character set in eclipse

Eclipse is an open source, Java-based extensible development platform. By itself, it is just a framework and a set of services for building development environments through plug-in components. Eclipse comes with a standard set of plug-ins, including the Java Development Kit (JDK).

Workspace encoding

By default, the Eclipse character set is GBK, but many projects now use UTF-8, so we need to set our The character set of the Eclipse development environment is UTF-8. The setting steps are as follows:

Select Window -> Preferences -> General -> Workspace -> Text file encoding in the menu bar, and click on Text file encoding Other, select UTF-8.

Web file encoding

If you use JSP, you can also modify the JSP character encoding in the left window

Window -> Preferences -> Web -> JSP Files

Encoding:ISO-10646/Unicode(UTF-8)

Apply-Apply and Close

content type File encoding format

First open eclipse and click on windows-》preference-》general-》content type.

Set the default encoding of the file and click the text option of Content Type. The options shown below pop up. There are many different files included in the options.

Setting the file encoding is very simple. You only need to enter the encoding format you want in the default encoding position, and then click OK to save the settings. When you create a new file, the default settings will be the new settings.

The above is the detailed content of How to modify gbk character set in eclipse. 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