Solution to Chinese garbled css: 1. Use "notepad" to write the CSS document; 2. Select "Format" from the file menu, pop up the drop-down menu, and select "Encode in UTF-8 format" below.
The operating environment of this tutorial: windows7 system, notepad 2020 version, DELL G3 computer.
Solution to Chinese garbled css:
First, use notepad to work on the CSS document you wrote
At this time we will see that the Chinese
appears in the form of garbled characters. Second, select "Format" from the file menu and a drop-down menu pops up. At this time we find that the default is "Encoded in ANSI format"
Select "Encode in UTF-8 format" below
You will see that the garbled text just now is displayed normally
As shown in the picture:
Related tutorial recommendations: CSS video tutorial
The above is the detailed content of How to deal with Chinese garbled css code. For more information, please follow other related articles on the PHP Chinese website!