Linux(Ubuntu) 中的乱码解决大全(待续)
来源:互联网 发布:数据挖掘考研 编辑:程序博客网 时间:2024/04/27 20:25
由于Linux不是中国人开发的,开发过程中也不是以中文为母语,虽有中文语言包,在软件兼容性上出现中文乱码也在所难免。我抽取网络上前人的经验,结合自己的理解,将他们加以总结,希望对后来者有所帮助。
1、html文件乱码;
现象:windows下保存的html在ubuntu中打开是乱码,
解决方法:将<!--@page { margin: 0.79in }P { margin-bottom: 0.08in }--> <head> </head>中的meta修改成 <METAhttp-equiv=content-type content="text/html; charset=gb2312">。
若没有就添加上。
2、方框乱码
现象: 百度、google音乐播放器显示汉字为方框乱码
解决方法:
目录切换: sudo cd /etc/fonts/conf.d
备份49-sansserif.conf文件 : sudo cp 49-sansserif.conf 49-sansserif.conf_backup
刪除49-sansserif.conf文件 :sudo rm 49-sansserif.conf
如果不想进行备份, 直接使用sudo rm 49-sansserif.conf即刻,但如果某个特定的时间、运行特定的软件、出现特定的问题、需要49-sansserif.conf时 那就慢慢折腾吧。
3、txt文件乱码。
现象: 打开txt文件出现乱码
解决:
终端输入:gconf-editor
然后:apps>gedit-2>peferences>encodings add "GB18030" to "auto_detected" and "show_in_menu"option.并把GB18030排在首位。
4 、 Rhythmbox中的歌曲信息乱码
解决:
先安装mutagen: sudo apt-get install python-mutagen
切换到mp3文件所在目录执行: mid3iconv -e GBK *.mp3
重新导入歌曲。
5、audacious2 乱码
解决:右击窗体-》Preferences -> playList -> song display : 将Title format 设置成Cstom ,将以下内入粘贴到Custom string 中 : ${?artist:${artist} - }${?album:${album} - }${title}%f
重新导入歌曲。
- Linux(Ubuntu) 中的乱码解决大全(待续)
- ubuntu/linux flash中文乱码 的解决
- jsp乱码解决大全
- jsp乱码解决大全
- jsp乱码解决大全
- jsp乱码解决大全
- jsp乱码解决大全
- JSP乱码解决大全
- jsp乱码解决大全
- jsp乱码解决大全
- 中文乱码解决大全
- JSP乱码解决大全
- jsp乱码解决大全
- jsp乱码解决大全
- jsp乱码解决大全
- jsp 乱码解决大全
- jsp乱码解决大全
- jsp乱码解决大全
- 开一瓶 royal rongdi
- Ubuntu – NTFS-3G
- loader.bin, boot.bin, u-boot.bin代码执行流分析
- linux vi的三种工作模式及转化过程
- java
- Linux(Ubuntu) 中的乱码解决大全(待续)
- vi怎么退出
- 养成良好的作息习惯
- 媒体播放组件编写完毕并且通过了初步的测试
- 使用netsh.exe命令配置TCP/IP协议
- Tomcat 配置 servlet
- 链表实现的学生管理系统
- 关于try-catch-finally
- December 24th Tuesday 2009