1、html中用meta标签的charset属性来设置网页编码,常用的编码为“UTF-8”。

2、html5定义字符编码:<meta charset="UTF-8">。

3、HTML 4.01定义字符编码:<meta http-equiv="content-type" content="text/html; charset=UTF-8">。

时间:2024-10-12 03:11:09
1、html中用meta标签的charset属性来设置网页编码,常用的编码为“UTF-8”。
2、html5定义字符编码:<meta charset="UTF-8">。
3、HTML 4.01定义字符编码:<meta http-equiv="content-type" content="text/html; charset=UTF-8">。