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

How to solve the eclipse css garbled problem

藏色散人
藏色散人Original
2020-12-31 09:25:382293browse

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!

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