sys uchardet¶
vb sys uchardet [-n BYTES] FILE...
Description¶
Guess the character encoding of each FILE using uchardet.
Options¶
- -n BYTES¶
Read at most BYTES bytes from each FILE for detection (default 4096)
Examples¶
Detect encoding of a text file
$ vb sys uchardet sample.txt
ASCII
Limit the number of bytes read during detection
$ vb sys uchardet -n 16 short.txt
ASCII