RChardet
Detect likely text encodings from sample bytes.
jmhodges · Data tools
GitHub projectOpen source Open on GitHubHow to try it
With Ruby 3.2 available, install rchardet at version 1.10.2. Run the detector on a simple ASCII-only fixture.
What we tested
1.10.2. Run the detector on a simple ASCII-only fixture. The detector reported ASCII for the short English sample.