- problem description
html file utf-8 encoding, charset= "gbk", browser parsing is normal;
html file gbk encoding, charset= "utf-8", browser parsing garbled; Why
- Code
gbk
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>Document</title>
</head>
<body>
<span></span>
</body>
</html>
----------
utf-8
<!DOCTYPE html>
<html>
<head>
<meta charset="gbk">
<title>Document</title>
<style>
</style>
</head>
<body>
<span></span>
</body>
</html>
- Screenshot
what are you asking?