如何解決Centos中html頁面訪問中文亂碼問題

如何解決Centos中html頁面訪問中文亂碼問題

如何解決centoshtml頁面訪問中文亂碼問題?

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>

?相關參考:centOS教程

立即學習前端免費學習筆記(深入)”;

? 版權聲明
THE END
喜歡就支持一下吧
點贊10 分享