The Ubuntu 12.04 LTS Chinese txt file displays garbled characters. In Ubuntu 12.04 LTS, the default text editor is GEDIT. The Ubuntu text editor in the English version does not recognize the character encoding method in the file, and Chinese characters are usually garbled. By searching for a solution on the Internet and experimenting with it yourself, we found that the following methods are effective: Ctrl + Alt + t open the command terminal, and www.2cto.com enter the following command on the terminal: gsettings set org. gnome. gedit. preferences. encodings auto-detected
"['Gb18030', 'gb2312', 'gbk', 'utf-8', 'big5', 'current', 'utf-16']" gsettings set org. gnome. gedit. preferences. encodings shown-in-menu
"['Gb18030', 'gb2312', 'gbk', 'utf-8', 'big5', 'stream ', 'utf-16'] "when you open the TXT file again, Chinese characters are displayed normally. Author lqhbupt