1. Problem description
Chinese garbled characters are displayed on the web page.
2. The cause of the problem
The default encoding format on the web page cannot display Chinese characters, and you need to specify an encoding format to parse.
3. Solutions
Use the meta tag to set the character encoding: <meta charset="UTF-8">
Note: This line of code must be placed before title and other meta tags. as follows:
<html>
<head>
<meta charset="UTF-8">
<title>中文</title>
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
</body>
</html>