linuxÏÔʾÂÒÂëÔõô½â¾ö
linuxÏÔʾÂÒÂëµÄ½â¾öÒªÁì°üÀ¨£ºÉèÖÃ×Ö·û±àÂëΪc.utf-8£»×°ÖÃ×ÖÌå°ü£¨debian/ubuntu£ºfonts-droid fonts-liberation£»centos/red hat£ºliberation-fonts droid-fonts£©£»¸üÐÂ×ÖÌ建´æ£¨fc-cache -fv»òrm -rf ~/.cache/fontconfig/*£©£»ÉèÖÃÓïÑÔÇéÐαäÁ¿£¨lc_ctype=”en_us.utf-8″£©£»Ê¹ÓÃרÓÃ×ÖÌåäÖȾ³ÌÐò£¨infinality»òfontconfig£©¡£
LinuxÏÔʾÂÒÂëµÄ½â¾öÒªÁì
ÔÚLinuxϵͳÖÐÓöµ½ÂÒÂëÏÔʾÎÊÌâÀ§ÈÅ×ÅÐí¶àÓû§¡£ÒÔÏÂÊÇһЩ³£¼ûµÄ½â¾öÒªÁ죺
1. ÉèÖÃ׼ȷµÄ×Ö·û±àÂë
ÖÕ¶ËÏÂÁexport LC_ALL=C.UTF-8
ÉèÖÃÎļþ£ºÔÚ /etc/default/locale ÎļþÖÐÉèÖà LANG=C.UTF-8
2. ×°ÖÃ×ÖÌå°ü
Debian/Ubuntu£ºapt install fonts-droid fonts-liberation
CentOS/Red Hat£ºyum install liberation-fonts droid-fonts
3. ¸üÐÂ×ÖÌ建´æ
fc-cache£ºfc-cache -fv
Fontconfig£ºrm -rf ~/.cache/fontconfig/*
4. ÉèÖÃÓïÑÔÇéÐαäÁ¿
ÖÕ¶ËÏÂÁlocale Éó²éÄ¿½ñÓïÑÔÇéÐÎ
ÉèÖÃÎļþ£ºÔÚ /etc/locale.conf ÎļþÖÐÉèÖà LC_CTYPE=”en_US.UTF-8″
5. רÓÃ×ÖÌåäÖȾ³ÌÐò£¨½öÏÞͼÐνçÃ棩
Infinality£ºÊÊÓÃÓÚ Debian/Ubuntu£¬ÌṩˢеÄ×ÖÌåäÖȾ
Fontconfig£ºÊ¹Óà fontconfig-configquery Éó²é¿ÉÓÃÉèÖÃ
6. ÆäËûÒªÁì
¼ì²éÎļþ±àÂ룺Îļþ¿ÉÄÜûÓÐ׼ȷ±àÂ룬µ¼ÖÂÏÔʾÂÒÂë¡£
ʹÓÃת»»¹¤¾ß£ºÈôÊÇÎļþÊÇÌض¨±àÂëµÄ£¬¿ÉÒÔʹÓà iconv »ò recode ¹¤¾ß¾ÙÐÐת»»¡£
½ûÓÃÓ²¼þ¼ÓËÙ£ºÄ³Ð©ÏÔ¿¨Çý¶¯³ÌÐò¿ÉÄܱ£´æ×ÖÌåäÖȾÎÊÌâ¡£
ÒÔÉϾÍÊÇlinuxÏÔʾÂÒÂëÔõô½â¾öµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡