NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev
A pure-Dart charset detection library for Dart and Flutter applications.
Latest stable
0.1.0
Last release 3 months ago
24 Aug 2026
Too new to tell
only 2 release windows
Nearly every release is documented
notes for 1 of 1 stable releases
Nothing withdrawn
no release was ever pulled
5 months old
3 releases · first in 2026
Drag across the ruler to compare, or tap a release to open it.
Stable release. Moved to Dart 3.13
Stable release. Moved to Dart 3.13
Minor fixes for pub.dev publishing
Minor fixes for pub.dev publishing
Minor tidy before publishing
Minor tidy before publishing
Your coding agent can read these notes before it upgrades. Set up the MCP server →
One column per month.
Initial development release of betto_charset_detector.
detectCharset(Uint8List bytes) — single public entry point that returns a
guaranteed lowercase IANA encoding label for an arbitrary byte sequence.
Stage 1 — BOM inspection (deterministic): Recognises five BOMs before any
heuristic processing. Four-byte BOMs (UTF-32 BE/LE) are checked before
two-byte BOMs to prevent UTF-32 LE (FF FE 00 00) being misidentified as
UTF-16 LE (FF FE).
Stage 2 — UTF-8 structural validation: Validates the input (up to the 8 KB
sample cap) with utf8.decode(allowMalformed: false). Pure ASCII passes this
stage because ASCII is a strict UTF-8 subset. Empty input also returns
utf-8.
Stage 3 — Candidate probe via the charset package: Probes Western and
CJK legacy encodings using Charset.canDecode. CJK candidates are promoted to
the front of the probe order when more than 15% of sample bytes are ≥ 0x80.
Falls back to windows-1252 (WHATWG Encoding specification default) if no
candidate matches.
Supported encodings:
utf-8, utf-16be, utf-16le, utf-32be, utf-32leutf-8 (including pure ASCII)windows-1252, iso-8859-1, iso-8859-2, iso-8859-15shift-jis, euc-jp, euc-kr, gbkwindows-12528 KB sampling policy: Only the first 8 192 bytes are examined, bounding memory usage for large inputs while remaining sufficient for reliable detection.
Stable IANA label contract: All returned labels are taken from an explicit
Encoding → label map rather than Encoding.name, insulating callers from
upstream name changes in the charset package (e.g. windows1252 →
windows-1252, latin-2 → iso-8859-2).
Pure Dart, no native dependencies: Compatible with all Dart and Flutter
target platforms — mobile, web, and desktop — with a single dependency on the
charset package.