Home > Article > Web Front-end > How to solve the eclipse css garbled problem
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.
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.
The original encoding of the file is GBK. Now it needs to be saved in UTF-8. Select Yes.
Right-click on the CSS file > Properties, you can see that the default encoding of the file is GBK.
Select Other and then select UTF-8.
Click Apply to apply the new settings.
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!