Check the file encoding under linux:
1. View with vim
Open the file with vim, Switch to bottom line command mode and enter the following command on the bottom line:
:set fileencoding
2, file view
3, enca view
Prerequisite: enca
File encoding conversion under Linux:
Tool | Description | Use |
---|---|---|
Use vim directly File encoding conversion | :set fileencoding=utf-8 | |
Convert file encoding | ||
Convert file encoding | ||
##convmv |
||
enca |
||
##Recommendation: " | linux operation and maintenance Tutorial
The above is the detailed content of How to check file encoding format under linux. For more information, please follow other related articles on the PHP Chinese website!