How to Check Text File Encoding at the Terminal
Guide 1
This method requires Python to be installed. By entering pip install chardet
in the terminal to install chardet
, and running the following command in the directory where the file to check the encoding is located, it shows what the encoding is along with its confidence.
PS C:\Users\rmsms\Downloads> chardetect .\example.csv
.\example.csv: EUC-KR with confidence 0.99
In this example, the encoding of example.csv
is EUC-KR
.
It is important to note that even though you install it through pip install chardet
, you must use chardetect
to execute the command. Make sure not to misspell it.