问:Linux下Chrome标题栏中文乱码

From: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>  


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

posted on 2014-12-04 23:19  frydsh  阅读(610)  评论(0编辑  收藏  举报

导航