Linux Chrome Tab 标题 乱码

来源:互联网 发布:手机淘宝免费开店 编辑:程序博客网 时间:2024/04/30 17:02

转自:http://blog.csdn.net/gpstrive/article/details/37662905

1. 刚装完ubuntu 14.04 英文版, 又装了google chrome 浏览器;

2. 打开chrome浏览器,发现tab也没的标题是乱码;

3. 而系统自带的firefox却没有这个问题,如图所示:


4. 原因是系统缺少相应的字体库支持,安装下面这些就OK

sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy


转自:http://blog.csdn.net/loveaborn/article/details/29579787

在使用Linux的时候你会遇到一些奇奇怪怪的问题,不过,你会在解决这些问题的过程当中就不知不觉都学到很多东西

比如说最近我把系统的一些包更新后,发现Chrome浏览器的标题栏的中文部分全部为乱码,但FireFox就没有这个问题


网上有人给出这个问题的解决是通过修改文件/etc/fonts/conf.d/49-sansserif.conf倒数第四行为自己喜欢的字体就行了,如我的改为ubuntu

[html] view plaincopy在CODE上查看代码片派生到我的代码片
  1. <?xml version="1.0"?>  
  2. <!DOCTYPE fontconfig SYSTEM "fonts.dtd">  
  3. <fontconfig>  
  4. <!-- 
  5.   If the font still has no generic name, add sans-serif 
  6.  -->  
  7.     <match target="pattern">  
  8.         <test qual="all" name="family" compare="not_eq">  
  9.             <string>sans-serif</string>  
  10.         </test>  
  11.         <test qual="all" name="family" compare="not_eq">  
  12.             <string>serif</string>  
  13.         </test>  
  14.         <test qual="all" name="family" compare="not_eq">  
  15.             <string>monospace</string>  
  16.         </test>  
  17.         <edit name="family" mode="append_last">  
  18.             <string>ubuntu</string>  
  19.         </edit>  
  20.     </match>  
  21. </fontconfig>  

但原理是什么呢?这是一个问题!!!
0 0