當前位置:首頁 » 操作系統 » linux中文字元集

linux中文字元集

發布時間: 2024-11-17 12:42:28

⑴ 如何查詢查看linux是否安裝了中文字元集

lucifer@abc:~$ locale -a 查看本地字元集
lucifer@abc:~$ locale -m 查看所有支持的字元集
將文件從gb2312轉為utf8
iconv -f gb2312 -t utf8 input.txt -o output.txt
如果沒有中文字元集,可以手動安裝。
1、安裝中文包:
#yum -y groupinstall chinese-support 安裝所有與中文支持相關的包
2、修改字元編碼配置文件
# vi /etc/sysconfig/i18n
修改後內容如下:
LANG="zh_CN.UTF-8"
SUPPORTED="zh_CN:zh:en_US.UTF-8:en_US:en:zh_CN.GB18030"
SYSFONT="latarcyrheb-sun16"
3、最後重啟伺服器:
#reboot

熱點內容
抖音的麥克風在哪裡打開安卓版 發布:2025-03-12 00:35:15 瀏覽:120
壓縮碳濾芯 發布:2025-03-12 00:21:11 瀏覽:416
php兩個數組並集 發布:2025-03-12 00:15:00 瀏覽:337
復印店源碼 發布:2025-03-11 23:56:48 瀏覽:952
彩運營源碼 發布:2025-03-11 23:56:44 瀏覽:195
電腦路由怎麼配置雙網卡 發布:2025-03-11 23:46:39 瀏覽:690
uc在哪解壓 發布:2025-03-11 23:34:19 瀏覽:247
linux多節點伺服器搭建 發布:2025-03-11 23:28:30 瀏覽:24
花雨亭伺服器打字怎麼全部 發布:2025-03-11 23:16:08 瀏覽:127
插值演算法實現 發布:2025-03-11 23:16:08 瀏覽:267