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.
uchardet started as a C language binding of the original C++ implementation of the universal charset detection library by Mozilla. It can now detect more charsets, and more reliably than the original implementation.
The original code of universalchardet is available at http://lxr.mozilla.org/seamonkey/source/extensions/universalchardet/
Techniques used by universalchardet are described at http://www.mozilla.org/projects/intl/UniversalCharsetDetection.html
apt-get install uchardet libuchardet-dev
urpmi libuchardet libuchardet-devel
dnf install uchardet uchardet-devel
brew install uchardet
cmake .
make
make install
``` uchardet Command Line Tool Version 0.0.5
Authors: BYVoid, Jehan Bug Report: https://github.com/BYVoid/uchardet/issues
Usage: uchardet [Options] [File]...
Options: -v, --version Print version and build information. -h, --help Print this help. ```
See uchardet.h
Mozilla Public License Version 1.1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.