FreeBSD 9.2 terminal UTF-8 support

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

 

Netkiller FreeBSD.


netkiller Neo Chan


<netkiller(at)msn(dot)com>







Copyright statement

Reprint please contact the author, please indicate the original source of the article and the author information and this statement when reprinting.

Document source:
http://netkiller.github.io
http://netkiller.sourceforge.net

 



A series of documents on my

 

Netkiller Architect. Netkiller Developer. Netkiller PHP. Netkiller Python. Netkiller Testing. Netkiller Cryptography.
Netkiller Linux. Netkiller CentOS. Netkiller FreeBSD. Netkiller Security. Netkiller Version. Netkiller Web.
Netkiller Monitoring. Netkiller Storage. Netkiller Mail. Netkiller Shell. Netkiller Network. Netkiller Database.
Netkiller PostgreSQL. Netkiller MySQL. Netkiller NoSQL. Netkiller LDAP. The Netkiller Cisco IOS. Netkiller H3C.
Netkiller Multimedia. Netkiller Docbook. Netkiller open source software.      

 





 

 


4.4. Unicode(UTF-8)




Show the current setting

% locale                                                                                                                                                                                                                                                 [0]
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
		

List the names of all available public language environment, usually we only care about zh_CN.UTF-8, zh_HK.UTF-8, zh_TW.UTF-8

% locale -a | grep '\.UTF-8$'                                                                                                                                                                                                                            [1]
af_ZA.UTF-8
am_ET.UTF-8
be_BY.UTF-8
bg_BG.UTF-8
ca_AD.UTF-8
ca_ES.UTF-8
ca_FR.UTF-8
ca_IT.UTF-8
cs_CZ.UTF-8
da_DK.UTF-8
de_AT.UTF-8
de_CH.UTF-8
de_DE.UTF-8
el_GR.UTF-8
en_AU.UTF-8
en_CA.UTF-8
en_GB.UTF-8
en_IE.UTF-8
en_NZ.UTF-8
en_US.UTF-8
es_ES.UTF-8
et_EE.UTF-8
eu_ES.UTF-8
fi_FI.UTF-8
fr_BE.UTF-8
fr_CA.UTF-8
fr_CH.UTF-8
fr_FR.UTF-8
he_IL.UTF-8
hr_HR.UTF-8
hu_HU.UTF-8
hy_AM.UTF-8
is_IS.UTF-8
it_CH.UTF-8
it_IT.UTF-8
ja_JP.UTF-8
kk_KZ.UTF-8
ko_KR.UTF-8
lt_LT.UTF-8
lv_LV.UTF-8
mn_MN.UTF-8
nb_NO.UTF-8
nl_BE.UTF-8
nl_NL.UTF-8
nn_NO.UTF-8
no_NO.UTF-8
pl_PL.UTF-8
pt_BR.UTF-8
pt_PT.UTF-8
ro_RO.UTF-8
ru_RU.UTF-8
sk_SK.UTF-8
sl_SI.UTF-8
sr_YU.UTF-8
sv_SE.UTF-8
tr_TR.UTF-8
uk_UA.UTF-8
zh_CN.UTF-8
zh_HK.UTF-8
zh_TW.UTF-8
		

~/The.Login_conf file is, when you login system will change the terminal set your

		
% cat ~/.login_conf                                                                                                                                                                                                                                      [0]
# $FreeBSD: release/9.2.0/share/skel/dot.login_conf 77995 2001-06-10 17:08:53Z ache $
#
# see login.conf(5)
#
#me:\
#	:charset=iso-8859-1:\
#	:lang=de_DE.ISO8859-1:
		
		

Set the UTF-8 support

		
% cat >> ~/.login_conf <<'EOF'

me:\
	:charset=UTF-8:\
	:lang=en_US.UTF-8:
EOF
		

Landing can be re

 

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Ann at December 30, 2013 - 1:55 PM