Home > Web Front-end > CSS Tutorial > How to solve the eclipse css garbled problem

How to solve the eclipse css garbled problem

藏色散人
Release: 2023-01-04 09:38:22
Original
2311 people have browsed it

The solution to eclipse css garbled code: first open a CSS file; then select "Save As UTF-8"; then right-click the properties of the CSS file and view the encoding; finally select "UTF-8", and Click "Apply" to apply the new settings.

How to solve the eclipse css garbled problem

The operating environment of this tutorial: Dell G3 computer, Windows 7 system, Eclipse IDE 2020-06 R&&css3 version.

If the CSS file does not use UTF-8 encoding, and the default encoding set by Eclipse is not UTF-8 encoding, garbled characters may appear when opened with Eclipse, and the page style may become inconsistent after saving.

Solution to eclipse css Chinese garbled characters

When you open a CSS file, you can see that the Chinese characters are garbled. When saving, you will be prompted to select Save As UTF-8.

How to solve the eclipse css garbled problem

The original encoding of the file is GBK. Now it needs to be saved in UTF-8. Select Yes.

How to solve the eclipse css garbled problem

Right-click on the CSS file > Properties, you can see that the default encoding of the file is GBK.

How to solve the eclipse css garbled problem

Select Other and then select UTF-8.

How to solve the eclipse css garbled problem

Click Apply to apply the new settings.

How to solve the eclipse css garbled problem

Recommended: "css video tutorial"

The above is the detailed content of How to solve the eclipse css garbled problem. 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