In Ubuntu system, when reading Windows files, it shows garbled characters, while Windows reads normally. The main reason for the problem is the difference in encoding. The following small series will introduce you to Windows files displayed on Ubuntu. Garbled solution.
to Ubuntu 13.04 for example
garbled reasons:
This is because the garbage problem in the Windows default encoding is GBK, in the case of ubuntu is UTF- 8, so the comments under Windows, Ubuntu will become garbled.
Install vim
Run in command line mode
sudo apt-get install vim
Find vim configuration folder
Generally not modified in this file
Add configuration file in your home directory
1 Run vim ~/.vimrc command
2 “ is the comment start symbol
set nu ”Set display line number
syntax on “Open syntax check
set showmode ”Show state in lower left corner
set autoindent &ldquo ; indentation
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf -8
Save OK.
The above is the solution to display garbled characters on Windows files on Ubuntu. If you encounter the same problem, you need to install the vim tool to reconfigure the file and operate it on the command line.
In Linux system operation, when you are making a direct copy of the machine, it is a waste of time w
IEs4Linux is an IE browser that can be used on Linux systems. If Google and other b
If you dont understand the Linux system to replace files, it is easy to cause text
zoneminder is a free open source video surveillance software under Linux. Many peop
Linux system yum command function introduction
Linux using xshell and xftp methods
Linux system how to re-mount var partition
Linux method of establishing dmg file through command line
Linux how to set up git to share with svn
Ubuntu sudo error command not found how to do?
Linux installation of the appropriate kernel header file method
How to install and set up Samba service
How to configure and install Node.js in Ubuntu development environment
CentOS download steps to install EPEL source
How to solve the problem of forgetting the root password under Linux?
Starting Tips: How to limit computer performance with msconfig
What is win7 Aero special effect
.exe executable can't open problem solution
Teach you to uninstall Windows 7
Win10 prompts that the application cannot run on the computer.
Win10 system upnp service how to open win10 system upnp service can not start two solutions
Win10 th2 Fall Update automatically uninstalls the program without user permission
What should I do if the Win7 system has a 0x000006d18 error message?