Ubuntu 11.10 打开 windows文件乱码解决方法
来源:互联网 发布:慢跑减肥 知乎 编辑:程序博客网 时间:2024/06/05 21:03
Ubuntu 11.10 打开 windows文件乱码解决方法
ubuntu默认的打开.txt文件用的是gedit,可gedit默认编码是UTF8,打开windows下编辑的gb2312的文档都是乱码。
在ubuntu 11.10下已经没有apps/gedit-2/preferences/encodings节点
1、命令行方式
ubuntu11.10 开始默认 GSettings (基于命令行)作为系统的配置工具,要解决 gedit 的中文字乱码,只需在终端执行:
gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8','GB18030','GB2312','GBK','BIG5','CURRENT','UTF-16']"
2、图像方式
在终端输入
sudo apt-get install dconf-tools --安装dconf-editor
按下Alt-F2,打开“运行应用程序”对话框,输入dconf-editor+回车,打开dconf-editor
在org--->gnome--->gedit--->preferences--->encodings--->auto-detected
最前面添加'GB18030','GB2312','GBK',输入完后敲回车键才能保存输入的内容
结果为['UTF-8','GB18030','GB2312','GBK','BIG5','CURRENT','UTF-16']
ubuntu默认的打开.txt文件用的是gedit,可gedit默认编码是UTF8,打开windows下编辑的gb2312的文档都是乱码。
在ubuntu 11.10下已经没有apps/gedit-2/preferences/encodings节点
1、命令行方式
ubuntu11.10 开始默认 GSettings (基于命令行)作为系统的配置工具,要解决 gedit 的中文字乱码,只需在终端执行:
gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8','GB18030','GB2312','GBK','BIG5','CURRENT','UTF-16']"
2、图像方式
在终端输入
sudo apt-get install dconf-tools --安装dconf-editor
按下Alt-F2,打开“运行应用程序”对话框,输入dconf-editor+回车,打开dconf-editor
在org--->gnome--->gedit--->preferences--->encodings--->auto-detected
最前面添加'GB18030','GB2312','GBK',输入完后敲回车键才能保存输入的内容
结果为['UTF-8','GB18030','GB2312','GBK','BIG5','CURRENT','UTF-16']
- Ubuntu 11.10 打开 windows文件乱码解决方法
- Ubuntu 11.10 打开 windows文件乱码解决方法
- Ubuntu打开windows文件乱码解决方法(转)
- Ubuntu打开windows文件乱码解决方法[转]
- ubuntu 12.04 14.04,14.10 打开windows下txt乱码解决方法!
- ubuntu 下打开windows 文件 程序代码 出现乱码,或者windows打开ubuntu下文件乱码
- ubuntu下打开txt文件乱码的解决方法
- 在ubuntu Pycharm 中打开txt文件的乱码解决方法
- linux下打开windows txt文件中文乱码解决方法
- Ubuntu下面打开windows txt文件乱码解决
- ubuntu解决打开windows记事本.txt文件乱码的方法
- ubuntu解决打开windows记事本.txt文件乱码的方法
- ubuntu解决打开windows记事本.txt文件乱码的方法
- Ubuntu解决打开windows记事本.txt文件乱码的方法
- ubuntu解决打开windows记事本txt文件乱码的问题
- Ubuntu解决打开windows记事本.txt文件乱码的方法
- ubuntu解决打开windows记事本.txt文件乱码的方法
- 解决ubuntu打开windows中txt文件出现乱码现象
- 豆瓣出错:java.lang.NoClassDefFoundError: com.google.gdata.client.douban.DoubanService
- Drag and Drop in WPF
- 复述抽取生成doc04-实现02-对给定句子搜索相关的句子
- 关于求FIRST集和FOLLOW集
- word2010的设置记录
- Ubuntu 11.10 打开 windows文件乱码解决方法
- 豆瓣出错Error generating final archive:Found duplicate file for APK:net/oauth/consumer.properties.sample
- 54. 长命的临时解决方案
- hdu1241(最简单的搜索)
- vim gdb 调试及gcc优化
- \'和' "和\"
- 强制使用void*无类型的错误
- UVa 123 Searching Quickly (使用STL replace进行字符串替换)
- 杨辉三角输出