![](https://img.php.cn/upload/article/000/000/049/5ed735c4c172c258.jpg)
如何解决Centos中html页面访问中文乱码问题?
1.安装相应的语言包
yum -y install kde-l10n-Chinese && yum -y reinstall glibc-common localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 export LC_ALL=zh_CN.utf8 vim /etc/profile export LC_ALL=zh_CN.utf8 export.UTF-8 source /etc/profile vim /etc/locale.conf
2.在html的meta中指定使用的字符集
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
相关参考:centOS教程
以上就是如何解决Centos中html页面访问中文乱码问题的详细内容,更多请关注php中文网其它相关文章!
![php中文网最新课程二维码](/static/images/article_wechat2021.jpg?1111)
声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论