将返回前一个浏览页面的代码粘在记事本中,保存为html文件,在本地运行,出现乱码?
汪汪
汪汪 2016-12-19 11:04:08
0
2
1125

如题

汪汪
汪汪

Antworte allen(2)
数据分析师

将返回前一个浏览页面的代码粘在记事本中,保存为html文件,在本地运行,出现乱码?-PHP中文网问答-将返回前一个浏览页面的代码粘在记事本中,保存为html文件,在本地运行,出现乱码?-PHP中文网问答

围观一下哦,学习一下。

阿神

记事本一般编码是gbk编码。

2种方法。

1.把这一行代码

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

改成

<meta http-equiv="Content-Type" content="text/html; charset=GBK">

2.用别的编辑器,如DW、sublime text。

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!