In the Ubuntu system, when reading Windows files in the display of garbled, and in the Windows read Normal, the main reason for the problem is different coding, the following small series to introduce the Windows file on Ubuntu display garbled solution.
Take Ubuntu 13.04 for example
Garbled Reason:
Garbled problem this is because the default encoding in Windows is GBK, under Ubuntu is UTF-8, so under the Windows annotation, Ubuntu becomes garbled.
Install Vim First
Running in command line mode
sudo apt-get install vim
Find Vim This configuration folder
Generally not modified in this file
is to add a configuration file in your home directory
1 Running vim ~/.VIMRC command
2 "is the note start symbol
Set Nu setting Displays line numbers
Syntax on "Open grammar check
Set Showmode display status in bottom left corner
Set Autoindent to Indent
Set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
Set Termencoding=utf-8
Set Encoding=utf-8
Save OK.
Above is the Windows file on Ubuntu display garbled solution, if you encounter the same problem, you need to install the Vim tool reconfiguration file, the command line to operate.