Search packages, repositories and app categories

Package detailsv6.0.0

flutter_charset_detector

Detect and decode the charset (character encoding) of text bytes

AndroidiOSWebmacOS
30-day downloads
7.3K
Likes
30
Pub points
160

Install package

flutter pub add flutter_charset_detector

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that detects and decodes the character encoding (charset) of raw text bytes. It helps identify encodings such as UTF-8, ISO-8859-1, and others, enabling accurate text rendering from unknown or mixed-source data. Ideal for handling text input from files, network responses, or user uploads where encoding is not explicitly known. The package supports multiple platforms including Android, iOS, Web, and macOS, ensuring consistent behavior across environments.

Use cases

  • Parsing unencoded text from files
  • Handling dynamic web content with unknown encoding
  • Decoding user-uploaded text data
  • Processing legacy system outputs
  • Supporting multilingual text detection

Key features

  • Automatic charset detection
  • Supports UTF-8, ISO-8859-1, and more
  • Cross-platform compatibility
  • Simple API for byte-to-string conversion
  • Reliable detection for mixed encodings

Suitable for

  • Apps processing external text sources
  • Internationalization features
  • Data import tools
  • Text analysis utilities
  • Legacy data migration

Considerations

  • May require additional testing for edge-case encodings
  • Performance impact on large text batches
  • Not suitable for real-time streaming scenarios
  • Depends on underlying native library accuracy

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_charset_detector/README.md

Categories

Dependencies

Dependency list 4 items

  • flutter_charset_detector_android^4.0.0
  • flutter_charset_detector_darwin^1.3.0
  • flutter_charset_detector_platform_interface^1.1.0
  • flutter_charset_detector_web^2.0.0

Source repository

Projects using this package