中文網(wǎng)頁報錯,如何處理
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa3 in position 78: illegal m
ultibyte sequence
網(wǎng)頁文件p1.html如下:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>無標(biāo)題文檔</title>
</head>
<body>
<h1>我的網(wǎng)頁</h1>
<p>web.py是最輕的框架</p>
</body>
</html>
2019-06-21
你的P1文本如果使用txt編輯的,需要在用txt打開,另存時選擇編碼格式 utf-8