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

How to solve the problem of garbled css files in eclipse

藏色散人
藏色散人Original
2021-02-02 09:26:572718browse

Solution to the garbled eclipse css file: First, right-click "Properties" on the CSS file and view the default encoding of the file; then change the encoding to "UTF8"; finally click Apply to apply the new settings.

How to solve the problem of garbled css files in eclipse

The operating environment of this article: windows7 system, css3 version, Dell G3 computer.

How to solve the garbled css file caused by eclipse?

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 opening it with Eclipse, and the page style may become corrupted after saving. The problem.

After starting Eclipse and selecting a workspace that does not exist, this error will be prompted.

How to solve the problem of garbled css files in eclipse

#When there is an error in the code, this window may pop up during runtime. To determine whether to enter the Debug view, click "YES", otherwise click "No".

How to solve the problem of garbled css files in eclipse

When I opened a CSS file, I could see that the Chinese characters were garbled. When saving, I was prompted to select Save As UTF-8.

Recommended: "css Video Tutorial"

How to solve the problem of garbled css files in eclipse

The original encoding of the file is GBK, now it needs to be saved in UTF-8, select yes.

How to solve the problem of garbled css files in eclipse

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

How to solve the problem of garbled css files in eclipse

Select Other and then select UTF-8.

How to solve the problem of garbled css files in eclipse

Click Apply to apply the new settings.

How to solve the problem of garbled css files in eclipse

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