How to check file encoding format under linux

Release: 2019-07-22 11:21:03
Original
27679 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template