New plugin: flutter_charset_detector for auto-detecting and decoding text with unknown charset/encoding
I recently released flutter_charset_detector: a plugin that auto-detects and decodes text with unknown charset/encoding.
Under the hood it uses the best native libraries I am aware of: uchardet on iOS and juniversalchardet on Android. Both of these are originally based on work from Mozilla.
This plugin is useful for apps that might have to interpret user-supplied data (especially files) that could be in arbitrary encodings.
(You might think that the whole world has moved to UTF-8, but you'd be wrong.)
I am using it in production right now in my app Orgro, an org-mode file viewer for iOS and Android.
Posted Sep 12, 2020, 1:40 PM UTC
60