text encoding detect

Difference between version 2 and 3 - Previous - Next
***How to detect text encoding use tcl, anyone know about it?***
There is a python implement called '''chardet''' [https://github.com/chardet.feedp/charsder.org/t].

It works well.

[gobvip] 2010/07/21
-----
The file command can do it too

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

[pi31415] 2022/05/06

<<categories>>Category Printing | Category HTML | Category Word and Text Processing