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的中文就能正常显示了。

  • 相关阅读:
    程序运行bug查看
    c# webbrowser 的html调用js出错
    c# dll使用注意
    支持ie的时间控件 html
    sql 条件插入
    软件自动更新原理
    c# 数组不能直接=,需要clone
    打包成exe程序
    逆袭大学
    Heritage from father
  • 原文地址:https://www.cnblogs.com/fincod/p/3766824.html
Copyright © 2011-2022 走看看