How to deal with Chinese garbled code in eclipse css

藏色散人
Release: 2022-12-30 11:12:51
Original
3917 people have browsed it

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!

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