PHP程序开发之使用header定义一个php页面为utf-8编码或GBK编码
2022-07-28 15:09:43
109
{{single.collect_count}}
php页面为utf-8编码 

header("Content-type: text/html; charset=utf-8"); 

php页面为gbk编码 

header("Content-type: text/html; charset=gb2312"); 

php页面为big5编码 

header("Content-type: text/html; charset=big5"); 

通常情况以上代码放在php页面的顶部

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}