linux安装中文方块乱码现象
由于某些原因系统安装时未安装中文支持,导致后续应用出现中文方块乱码现象,解决方法很简单,当然不是重装,只需以下三步即可搞定。1、安装中文包:#yum -y groupinstallchinese-support 安装所有与中文支持相关的包 2、修改字符编码配置文件# vi/etc/sysconfig/i18n修改后内容如下:LANG="zh_CN.UTF-8
由于某些原因系统安装时未安装中文支持,导致后续应用出现中文方块乱码现象,解决方法很简单,当然不是重装,只需以下三步即可搞定。
1、安装中文包:
#yum -y groupinstallchinese-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
具体过程如下:
[root@sun isolinux]# yum -yinstall font
Loaded plugins: rhnplugin,security
This system is not registeredwith RHN.
RHN support will bedisabled.
rhel-debuginfo
Setting up InstallProcess
No package fontavailable.
Nothing to do
[root@sun isolinux]# yum -ygroupinstall chinese-support
Loaded plugins: rhnplugin,security
This system is not registeredwith RHN.
RHN support will bedisabled.
Setting up GroupProcess
rhel-debuginfo/group
ResolvingDependencies
--> Runningtransaction check
---> PackageDeployment_Guide-zh-CN.noarch 0:5.2-11 set to be updated
---> PackageDeployment_Guide-zh-TW.noarch 0:5.2-11 set to be updated
---> Packagefonts-chinese.noarch 0:3.02-12.el5 set to be updated
---> Packagelv.i386 0:4.51-8.1 set to be updated
---> Packagescim-bridge-gtk.i386 0:0.4.5-9.el5 set to be updated
--> ProcessingDependency: scim-bridge = 0.4.5-9.el5 for package:scim-bridge-gtk
---> Packagescim-chewing.i386 0:0.3.1-11.el5 set to be updated
--> ProcessingDependency: libscim-gtkutils-1.0.so.8 for package:scim-chewing
--> ProcessingDependency: libscim-1.0.so.8 for package: scim-chewing
--> ProcessingDependency: scim for package: scim-chewing
--> ProcessingDependency: libchewing.so.3 for package: scim-chewing
--> ProcessingDependency: libscim-1.0.so.8(LIBSCIM_1.0) for package:scim-chewing
---> Packagescim-chinese-standard.i386 0:0.0.2-1.el5 set to beupdated
---> Packagescim-pinyin.i386 0:0.5.91-16.el5 set to be updated
---> Packagescim-qtimm.i386 0:0.9.4-5 set to be updated
---> Packagescim-tables-chinese.i386 0:0.5.6-7 set to be updated
--> ProcessingDependency: scim-tables = 0.5.6 for package:scim-tables-chinese
---> Packagestardict.i386 0:2.4.5-5 set to be updated
--> Runningtransaction check
---> Packagelibchewing.i386 0:0.3.0-8.el5 set to be updated
---> Packagescim.i386 0:1.4.4-41.el5 set to be updated
---> Packagescim-bridge.i386 0:0.4.5-9.el5 set to be updated
---> Packagescim-libs.i386 0:1.4.4-41.el5 set to be updated
---> Packagescim-tables.i386 0:0.5.6-7 set to be updated
--> FinishedDependency Resolution
DependenciesResolved
====================================================================================================================================
====================================================================================================================================
Installing:
Installing fordependencies:
Transaction Summary
====================================================================================================================================
Install
Update
Remove
Total download size: 43M
DownloadingPackages:
------------------------------------------------------------------------------------------------------------------------------------
Total
Runningrpm_check_debug
Running TransactionTest
Finished TransactionTest
Transaction TestSucceeded
Running Transaction
Installed:
DependencyInstalled:
Complete!
[root@sun isolinux]# vi/etc/sysconfig/i18n
#LANG="en_US.UTF-8"
#SYSFONT="latarcyrheb-sun16"
LANG="zh_CN.UTF-8"
SUPPORTED="zh_CN:zh:en_US.UTF-8:en_US:en:zh_CN.GB18030"
SYSFONT="latarcyrheb-sun16"
-iso10646-1=/usr/share/fonts/chinese/TrueType/ukai.ttf
filename.-misc-zysong18030-medium-r-normal--*-%d-*-*-c-*-iso10646-1=/usr/share/fonts/chinese/TrueType/uming.ttf
更多推荐
所有评论(0)