text encoding detect

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