ubuntugedit開啟windows分區中txt檔案亂碼

來源:互聯網
上載者:User

ubuntugedit開啟windows分區中txt檔案亂碼

http://blog.csdn.net/pipisorry/article/details/39482861

ubuntu 12.04 gedit 開啟 windows 分區中的txt 檔案亂碼,是因為 ubuntu 和 windows 兩個系統的編碼不同。

解決辦法1:(推薦)

終端裡依次輸入以下 2 條命令即可:

gsettings setorg.gnome.gedit.preferences.encodings auto-detected "['GB18030','GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT','UTF-16']"

gsettings setorg.gnome.gedit.preferences.encodings shown-in-menu "['GB18030','GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT','UTF-16']"

解決辦法2:

1、在終端輸入“dconf-editor”斷行符號。(如果沒有安裝用“sudo apt-get install dconf-tools”安裝。)

2、展開org/gnome/gedit/preferences/encodings

auto-detected的value中加入 'GB18030', 加在uft8後面,按斷行符號;

show-in-menu的value中在前面加入 'GB18030', 按斷行符號。

from:http://blog.csdn.net/pipisorry/article/details/39482861

ref:http://blog.sina.com.cn/s/blog_455c7a600101a7w7.html

Ubuntu 12.04下Gedit開啟Windows下txt檔案亂碼解決

ubuntu下txt文檔亂碼現象

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.