Home  >  Article  >  Web Front-end  >  How to deal with Chinese garbled code in eclipse css

How to deal with Chinese garbled code in eclipse css

藏色散人
藏色散人Original
2021-01-28 09:55:163911browse

The Chinese garbled characters in eclipse css are caused by the mismatch between file encoding and character encoding. The solution is: first open eclipse; then in properties, find and select UTF-8; finally click Apply to apply the new settings. Can.

How to deal with Chinese garbled code in eclipse css

The operating environment of this tutorial: windows7 system, Eclipse IDE 2020-06 R version, DELL G3 computer.

Recommended: css video tutorial

When developing in eclipse, you often find that if there is Chinese in js, css, etc., Chinese garbled characters will appear when you open it directly. And if you want to input Chinese, you can't save it

How to deal with Chinese garbled code in eclipse css

In fact, this is caused by the mismatch between file encoding and character encoding. 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.

You can use the following method to solve this problem:

How to deal with Chinese garbled code in eclipse css

How to deal with Chinese garbled code in eclipse css

Select Other and then select UTF-8.

How to deal with Chinese garbled code in eclipse css

Click Apply to apply the new settings.

How to deal with Chinese garbled code in eclipse css

The above is the detailed content of How to deal with Chinese garbled code in eclipse css. 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