zoukankan      html  css  js  c++  java
  • 问: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>  


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

  • 相关阅读:
    C++语法小记---string类
    C++语法小记---标准库
    C++语法小记---运算符重载
    C++语法小记---函数重载
    C++语法小记---友元
    C++语法小记---开篇
    STM32使用printf丢失第一个字母的问题
    AD芯片的基准参考电压问题
    运算放大器的调试经验
    [置顶] TIM_GetCounter与TIM_GetCapture1的区别
  • 原文地址:https://www.cnblogs.com/frydsh/p/4145293.html
Copyright © 2011-2022 走看看