殘留悳溫存 1星
共回答了177个问题 评论
1、首先确保文件编码和编辑环境也是UTF-8
2、在文件开头加上以下声明:<meta charset="utf-8">
3、对于HTML文件,可在<head>中加上:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4、对于PHP文件,可以在开头添加: header("Content-type:text/html;charset=utf-8");
5、对于XML文件,可以在开头添加:<?xml version="1.0" encoding="utf-8"?>
2小时前
猜你喜欢的问题
2天前1个回答
2天前1个回答
2天前1个回答
2天前2个回答
2天前1个回答
2天前2个回答
热门问题推荐
1个月前1个回答
1个月前2个回答
1个月前1个回答
2个月前1个回答
2个月前1个回答
3个月前1个回答
1个月前1个回答
3个月前1个回答
3个月前1个回答