Thursday, April 25, 2019

Verifying file confidence in Linux for Character set

On Linux,

chardetect original_file.txt
Gives the confidence level[0-1] for the file.

Example:
$ chardetect script.sh
script.sh: ascii with confidence 1.0

$ chardetect file_part_41.csv
file_part_41.csv: ISO-8859-2 with confidence 0.587938805636

***

No comments:

Post a Comment