Flutter plugin that detects the charset (encoding) of text bytes

Overview

flutter_charset_detector

Automatically detect and decode the charset (character encoding) of text bytes.

The example app; details

This plugin uses native libraries derived from the universal charset detection libraries created by Mozilla.

Supported platforms

  • Android 4.1 (SDK 16) and higher
  • iOS 9 and higher

Supported charsets

The detectable charsets differ by platform according to the capabilities of the underlying library; for specifics see:

Usage

import 'package:flutter_charset_detector/flutter_charset_detector.dart';

Uint8List bytes = getBytes(); // bytes with unknown encoding
DecodingResult result = CharsetDetector.autoDecode(bytes);
print(result.charset); // => e.g. 'SHIFT_JIS'
print(result.string); // => e.g. '日本語'

See also

  • charset_converter if you already know the name of the charset you want to encode/decode
You might also like...

A flutter package which contains a collection of Splash Screen example for your app to display logo and different text style.

A flutter package which contains a collection of Splash Screen example for your app to display logo and different text style.

splash_screen_view They say, first impression is the last! Yep, truly for any amazingly crafted application, it's easier to start impressing your audi

Nov 25, 2022

Friendly-Chat - Simple text messaging app coded in Dart using the Flutter framework

Friendly Chat A mobile application coded in the Dart programming language using

May 15, 2022

Android app that recognizes text on photos.

Text Reconition app Text recognition app built with flutter This is a simple flutter app built for recognizing text from images. The app takes a image

Oct 31, 2022

Provide easy and flexible way to show SnackBar. Simple text, undo, and error style are supported.

Provide easy and flexible way to show SnackBar. Simple text, undo, and error style are supported.

snack_bar_presenter Provide easy and flexible way to show SnackBar. Simple text, undo, and error style are supported. . . . Usage import 'package:exam

Nov 30, 2020

Flutter Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.

Flutter Music Player - First Open Source Flutter based material design music player with audio plugin to play local music files.

Flutter Music Player First Open Source Flutter based Beautiful Material Design Music Player(Online Radio will be added soon.) Demo App Play Store BETA

Jan 8, 2023

A Flutter plugin for the Google Mobile Ads SDK

A Flutter plugin for the Google Mobile Ads SDK

Jan 2, 2023

Flutter plugin that allows users to create TextAvatar easily!

Flutter plugin that allows users to create TextAvatar easily!

Colorize Text Avatar Colorize Text Avatar is a package to generate avatar based on your user initials. It supports to generate avatars based on your s

Dec 14, 2022

Official plugin for using Thepeer SDK with flutter https://thepeer.co

Official plugin for using Thepeer SDK with flutter https://thepeer.co

Flutter Thepeer This package makes it easy to use the Thepeer in a flutter project. 📸 Screen Shots 🚀 How to Use plugin ThePeer Send Launch ThepeerSe

Dec 27, 2022
Comments
  • "Expecting an argument" error when building

    Thank you for the plugin. But it is showing this error while building

    pub.dartlang.org\flutter_charset_detector-1.0.0\android\src\main\kotlin\com\madlonkay\flutter_charset_detector\FlutterCharsetDetectorPlugin.kt: (58, 36): Expecting an argument
    
    bug 
    opened by KiruthikaAdhi 5
  • Build failed when run the app

    Build failed when run the app

    I added flutter_charset_detector: ^0.3.0 to my pubspec.yaml. And there was no problem when i wrote "pub get" on the terminal. But i tried to run the app, and because of the following exception, the build failed.

    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    e: C:\Users\Dexter\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_charset_detector-0.3.0\android\src\main\kotlin\com\madlonkay\flutter_charset_detector\FlutterCharsetDetectorPlugin.kt: (58, 36): Expecting an argument
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':flutter_charset_detector:compileDebugKotlin'.
    

    What should i do? Thanks a lot.

    opened by MustafaDeniz23 1
  • Flutter web and desktop version

    Flutter web and desktop version

    Hi!

    Do you have plans to write this plugin for flutter web and desktop (windows) ? Looking at your job, it seems to be very powerful against other ones at the internet. I need to open file that is encoded with Shift-JIS, and I didnt find any plugin that works for desktop. For now, Ill write my code using C#.NET but it will very exciting to have it in Flutter!

    Anyways... congratulations for your work! It appears to be very nice!

    opened by GnRSlash 1
Owner
Aaron Madlon-Kay
I get around like sushi on the kaiten.
Aaron Madlon-Kay
With ML Kit's face detection API, you can detect faces in an camera or image, Note that the API detects faces, it does not recognize people

Face Detection This project is a starting point for a Flutter application. Getting Started For help getting started with Flutter, view our online docu

Nashwan Abdullah 21 Dec 29, 2022
A mobile app for fixing encoding problems in persian subtitles

اصلاح زیرنویس پارسی Persian Subtitle Fixer درباره اپلیکیشن «اصلاح زیرنویس پارسی» با هدف اصلاح رمزگذاری (انکودینگ) فایل های زیرنویس فارسی طراحی شده است

Mohammad Ebrahimi 7 Nov 25, 2022
A Flutter application implementing AR core, Text-to-speech, and Speech-to-text technologies.

ar_x_ai A Flutter application implementing AR core, Text to speech and Speech to text technologies. Getting Started This project is a starting point f

Alston Fernandes 1 Dec 17, 2021
A Translator App Which is Build using Flutter, Speech To Text, Google ML Kit, Google Translator and Text To Speech.

AI Translator This is a Translator App Which is Build using Flutter, Speech To Text, Google ML Kit, Google Translator and Text To Speech. Download App

null 4 Jul 16, 2022
LinkWell is a Text widget that highlight all the links in the text which then navigates the user to the URL when tapped

LinkWell LinkWell is Text Plugin that detects URLs and Emails in a String and when tapped opens in user browsers, linkwell GitHub ScreenShots Basic Us

Samuel Ezedi 31 Sep 27, 2022
Flutter sample app using MLKit Vision API for text recognition

Flutter ML Kit Vision This a sample Flutter app integrated with the ML Kit Vision API for recognition of email addresses from an image. NOTE: The ML K

Souvik Biswas 21 Oct 12, 2022
Dynamic Text Highlighting (DTH) package for Dart & Flutter.

Dynamic Text Highlighting (DTH) This package is used to highlight, in a completely dynamic way, keywords, or phrases, wherever they are present in a s

null 34 Oct 3, 2022
display a Dart string in Flutter using simple rich text characters

simple_rich_text Easily format Flutter text with simple format characters. Motivation: lowest-possible development friction to add color and formattin

Peter Alvin 16 Dec 5, 2022
A flutter widget that show the camera stream and allow ML vision recognition on it, it allow you to detect barcodes, labels, text, faces...

Flutter Camera Ml Vision A Flutter package for iOS and Android to show a preview of the camera and detect things with Firebase ML Vision. Installation

Rushio Consulting 257 Jan 2, 2023
Sytôdy, a Flutter "speech to text" todo app POC

Sytôdy, a Flutter "speech to text" todo app POC ⚠️ iOS10(Swift) & Android Usage Install flutter cd sytody flutter run ?? Video demo How it works TL;DR

Erick Ghaumez 83 Jan 19, 2022