
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Fast character set encoding detection using International Components for Unicode library: International Components for Unicode
Add this line to your application's Gemfile:
gem 'uchardet'
And then execute:
$ bundle
Or install it yourself as:
$ gem install uchardet
require 'open-uri'
require 'uchardet'
text = open('https://raw.githubusercontent.com/dmgk/uchardet/master/test/samples/shift_jis.txt').read
encoding = ICU::UCharsetDetector.detect(text)
encoding # => {:encoding=>"Shift_JIS", :confidence=>100, :language=>"ja"}
From command line:
$ uchardet
Usage: uchardet [options] file
-l, --list Display list of detectable character sets.
-s, --strip Strip HTML or XML markup before detection.
-e, --encoding Hint the charset detector about possible encoding.
-a, --all Show all matching encodings.
-h, --help Show this help message.
-v, --version Show version.
$ uchardet `which uchardet`
ISO-8859-1 (confidence 25%)
Bug reports and pull requests are welcome on GitHub at https://github.com/dmgk/uchardet
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that uchardet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.