Home >Web Front-end >CSS Tutorial >How to deal with Chinese garbled css code

How to deal with Chinese garbled css code

coldplay.xixi
coldplay.xixiOriginal
2021-04-29 17:34:447195browse

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.

How to deal with Chinese garbled css code

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

How to deal with Chinese garbled css code

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

How to deal with Chinese garbled css code

You will see that the garbled text just now is displayed normally

As shown in the picture:

How to deal with Chinese garbled css code

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!

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