encoding_rs decodes and encodes every encoding in the WHATWG Encoding Standard (UTF-8, UTF-16, Windows code pages, ISO-8859, KOI8, Shift_JIS, EUC-JP, GBK, GB18030, Big5, EUC-KR) with BOM handling. It’s Firefox’s encoding library and the de facto standard in Rust.
chardetng guesses the legacy encoding of unlabeled text and returns an encoding_rs::Encoding. It’s the detector Firefox uses for pages without a charset declaration; it’s small and focused on the encodings the web actually uses.
chardetngchardetng is Firefox's character encoding detector for Rust: guess the legacy encoding of unlabeled text and decode it with encoding_rs. Installation.
encoding_rsencoding_rs is Firefox's Rust library for text encodings: decode Windows-1252, UTF-16, Shift_JIS and other files to UTF-8, handle BOMs and encode back.