Install ruby-rchardet by entering the following commands in the terminal:
sudo apt update sudo apt install ruby-rchardet
Description:
Character encoding auto-detection for Ruby
CharDet is a library to automatically detect character encoding 'as smart as your browser'.
Homepage: https://github.com/jmhodges/rchardet
Version: 1.6.1-1
Section: universe/ruby