How to solve the problem of garbled css files in eclipse

藏色散人
Release: 2022-12-30 11:13:22
Original
2734 people have browsed it

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!

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