UTF-8 is a variable-length character Unicode code for Linux systems that supports multiple languages using UTF-8 code. However, some files are not UTF-8 encoded. At this time, we can use commands to find and replace non-UTF-8 codes. Here is a description of how Linux systems find and replace non-UTF-8 encoded files.
Before you begin, please enca install this package. Enca is a tool for viewing file encoding and conversion file encoding under Linux and other systems.
The following line of Linux commands can find out which files in the current directory are not UTF-8 encoded. I added some restrictions to the file. When using the find command, I excluded the .svn directory in all directories and only looked for files with a .php extension.
Command 1:
jw@~/sqlite>
find . ! -iregex ‘.*\\.svn.*’ -type f -name ‘*.php’ -exec bash -c “enca -L zh_CN {}
Usually, our computers are connected by broadband, so how to set up wireless wifi? The following sma
Linux character interface is easy to be boring for a long time. If you add a person
Some users have set up a VPN in their Linux system, but they cant connect to the VPN, and the system
The XFS file system is a 64-bit high-performance file system with very powerful fea
CentOS automatically starts the desktop service after booting
Five Ways to Improve Linux System Security
Linux system hard disk failure repair method
Linux uses the sftp command to transfer files. Step
Linux system vim how to install vundle component
Linux system iPtraf installation and use method
Linux uses vim for multiple file lookup and replacement methods
Fedora 19 download and install NixNote steps
How to install and use Glances in Linux
How to install Linux using the pidstat command
How to change the "start" of Windows 8.1
Registry command, open the registry command
Win7 32-bit flagship system in response to firewall vulnerabilities
After cleaning up the dust, it turns into a black screen. What to do
It takes only three steps to select hundreds of files in a massive file!
Master share: the secret to solve Win7 startup failure
Crash attack Win 7 system blue screen hot fix patch
Win10 how to restore win7? win10 one key to restore win7 graphic tutorial