Version 4 of text encoding detect

Updated 2024-01-27 02:46:07 by pi31415

How to detect text encoding use tcl, anyone know about it?

There is a python implement called chardet [L1 ].

It works well.

gobvip 2010/07/21


The file command can do it too

bash-5.1$ file --mime-encoding foobar.txt
foobar.txt: iso-8859-1

The encguess command from Perl can also do this. There are pathological cases that encguess handles better than the file command, and vice versa.

pi31415 2024/01/26