uchardet
uchardet is an encoding detector library, which takes a sequence of bytes in an unknown character encoding without any additional information, and attempts to determine the encoding of the text. Returned encoding names are iconv-compatible.
It has been finally decided that uchardet would be hosted as a Freedesktop project.
* Uchardet homepage: https://www.freedesktop.org/wiki/Software/uchardet/