Home >Web Front-end >CSS Tutorial >How to deal with Chinese garbled code in eclipse css
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.
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
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:
Select Other and then select UTF-8.
Click Apply to apply the new settings.
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!