When you view windows files under Linux, there are often garbled or unreadable situations. This involves the problem of encoding the file character set. You can view the file character set and convert it under Linux. Windows files, let's get to know it.
There are some sites courseware resources are spread Linux server from the windows, the windows folder encoding is GBK, and the browser default encoding scheme is UTF-8 (also server default encoding is UTF -8), this led to the inaccessibility of a domain name like http://xxxx//Resources/Beijing Normal University/Junior High School/Eight Year/This book/Green.ppt, suggesting that resources could not be found.
Solution: Use convmv tool to re-encode the names of all files in the Resources directory using utf-8
Note: If you use ftp client to access resources, you will encounter garbled characters. Please verify that the client encoding is consistent with the server
make clean
make install
. /convmv -f GB2312 -t UTF-8 -r --notest /Resources/*
The above describes how to modify the directory name encoding under linux, and then expand the file content change encoding method
1. Convert file encoding directly in Vim, such as converting a file to utf-8 format
:set fileencoding=utf-8
2. iconv conversion, iconv The command format is as follows:
iconv -f encoding -t encoding inputfile
For example, converting a UTF-8 encoded file to GBK encoding
iconv -f GBK -t UTF -8 file1 -o file2
The above is the method of encoding and converting the file character set under Linux. After converting the character set, the file will not be garbled when viewed on different systems. You have learned ?
The oracle database is one of the most popular server databases. It can handle dist
In Linux system operation, if you encounter unfamiliar words, you will look up the
Linux is the most horrible problem with git bash. Once garbled, it will affect git
The default font for the Fedora 22 system is Siyuan Blackface. It should be said th
How Linux uses the shell to identify system bits
Linux steps to start an Oracle database using commands
Detailed explanation of the functions and parameters of the Linux system ar command
Ubuntu install libgdiplus error how to do?
How to quickly delete duplicate data rows in Linux files
What should I do if there are garbled characters in Linux Chinese characters?
Linux Shell text processing command summary
Backtrack how to open SSH service
Linux installation of Redis methods and common problems
Linux change 22 port method summary
Win8 enters the number of login password errors by group policy limit
Wget command operation example
Windows XP printer can not share the problem of resolution
File Association Commons in Windows XP
Win8.1 Update commonly used shortcuts Daquan
How to save screenshots to the desktop on Windows 8