Ubuntu 預設用 gedit 開啟 .txt,預設編碼 UTF-8,開啟 Windows 下編輯的 GB2312 檔案會亂碼。解決:將 gedit 自動偵測編碼優先順序加入中文編碼並置頂。
gconf-editor
apps → gedit-2 → preferences → encodings → auto-detected