Home  >  Article  >  Operation and Maintenance  >  How to check file encoding format under linux

How to check file encoding format under linux

尚
Original
2019-07-22 11:21:0327678browse

How to check file encoding format under linux

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

How to check file encoding format under linux

3, enca view

Prerequisite: enca

How to check file encoding format under linux

File encoding conversion under Linux:


##vimUse vim directly File encoding conversion:set fileencoding=utf-8##recodeUtrac##cstocsConvert file EncodingConvert file name encodingAnalyze the encoding of a given filelinux operation and maintenance Tutorial》
Tool Description Use
Convert file encoding
Convert file encoding

##convmv

enca

##Recommendation: "

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is LINUXNext article:What is LINUX