zoukankan      html  css  js  c++  java
  • Fedora20 和ubuntu 14.04 chrome标签中文乱码

    作为两个流行的桌面发行版本,Fedora和ubuntu最新版本都存在chrome标签中文乱码问题。

    下面是解决办法,都来自百度贴吧。

    1.ubuntu 系列:

      解决办法就是:

        编辑/etc/fonts/conf.d/49-sansserif.conf

        将第一次出现的sans-serif改为ubuntu即可正常显示中文。

        该更示例如下:

    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <fontconfig>
    <!--
      If the font still has no generic name, add sans-serif
     -->
            <match target="pattern">
                    <test qual="all" name="family" compare="not_eq">
                            <string>ubuntu</string>
                    </test>
                    <test qual="all" name="family" compare="not_eq">
                            <string>serif</string>
                    </test>
                    <test qual="all" name="family" compare="not_eq">
                            <string>monospace</string>
                    </test>
                    <edit name="family" mode="append_last">
                            <string>sans-serif</string>
                    </edit>
            </match>
    </fontconfig>

      2.fedora这样更改不成功,正确办法是卸载google-dorid字体,或者删除和隐藏字体文件夹。

       

    cd /usr/share/fonts/
    mv google-droid/ .goole-droid

    OK,chrome的中文就能正常显示了。

  • 相关阅读:
    fatal: protocol error: bad line length character: This
    httpd: apr_sockaddr_info_get() failed for bogon
    Go语言函数
    Go语言流程控制
    进制转换
    Go语言运算符
    LeetCode 62. Unique Paths
    LeetCode 61. Rotate List
    asdfasdfasdf
    开发者,别让自己孤独
  • 原文地址:https://www.cnblogs.com/fincod/p/3766824.html
Copyright © 2011-2022 走看看