Life Since 1985

Happy Hacking
It's so coooooool!!! 交换你的caps-lock和ctrl
用U盘winpe安装ghost系统

linux下乱码的解决

david kei posted @ 2010年8月09日 23:58 in Method with tags linux 乱码 , 1829 阅读

本来是想解决一下FLASH乱码的我问题,但是通过这种方法可以解决绝大多数的在linux系统下产生的乱码问题。其实这个方法就是将默认的字体删除,让linux使用不会产生问题的中文字体。这个问题用一下两条命令就能解决。

sudo cp /etc/fonts/conf.d/49-sansserif.conf /etc/fonts/conf.d/49-sansserif.conf.bak

这一条是进行备份,如果执行第二条命令后并没有解决乱码问题可以通过将文件名去掉.bak来还原。

sudo rm /etc/fonts/conf.d/49-sansserif.conf

这条命令是删除这个字体。

执行完后然后刷新网页,一般都会解决乱码的问题。

PS:不是原创,从google大神中找到的,不过命令下的注释使我写的,希望会对大家有所帮助。这个方法不是仅仅如原文所说只能解决flash乱码的问题,因为改变的不仅仅是flash中的字体,改变的是os的字体。所以经过我的测试对于pdf产生的乱码也能够很好的解决。

ps:很惊奇这个方法的通用性,在刚刚接触linux的时候就是使用这种方法,到了现在依然可以用。

Bihar Board 10th Sci 说:
2022年9月27日 06:49

Bihar School Examination Board is announced Physics (PS), Chemistry, Biology (EVS) solved sample question paper with BSEB 10th Model Paper 2023 for general science students for the academic year of 2023, Bihar Board 10th Science Model Paper every BSEB student can download the BSEB class 10th grade Science model paper in set wise and section wise for all subject and chapter wise suggestions from Bihar Board 10th Science Model Paper 2023 Pdf.

Emma 说:
2022年12月14日 01:01

If you are seeing garbled characters when using Linux, it is likely that the font being used does not <a href="https://buycbdgummies.com/cbd-dosage/things-to-remember-before-buying-cbd-gummies/">buy cbd gummies</a> support the characters being displayed. To fix this, you can try changing the font being used by the terminal. Some step-by-step process for solving these issue is mentioned here. Keep sharing more updates here.

Alyssa 说:
2022年12月14日 01:02

The garbled characters when using Linux is likely that the font being buy cbd gummies used does not support the characters being displayed. To fix this, you can try changing the font being used by the terminal. Some step-by-step process for solving these issue is mentioned here. Keep sharing more updates here.

charlly 说:
2023年1月11日 20:26

When using Linux, if you encounter garbled characters, it is most likely because the font does not support the characters being shown. You can try altering the font that the terminal is using to fix this. This article mentions a step-by-step procedure for resolving these problems. osteoporosis symptoms Continue adding new information here.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter