{"id":16747910,"url":"https://github.com/amake/flutter_charset_detector","last_synced_at":"2025-03-17T02:30:58.618Z","repository":{"id":56829186,"uuid":"294618173","full_name":"amake/flutter_charset_detector","owner":"amake","description":"Flutter plugin that detects the charset (encoding) of text bytes","archived":false,"fork":false,"pushed_at":"2025-02-26T22:10:04.000Z","size":586,"stargazers_count":20,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T07:22:22.484Z","etag":null,"topics":["android","charset","charset-detector","encoding","flutter","ios","plugin","text-encoding"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_charset_detector","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"amake"}},"created_at":"2020-09-11T06:55:18.000Z","updated_at":"2025-02-26T22:09:53.000Z","dependencies_parsed_at":"2023-01-27T10:16:04.230Z","dependency_job_id":"1ae11879-c935-4ba9-b6c5-cc533e58149b","html_url":"https://github.com/amake/flutter_charset_detector","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fflutter_charset_detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fflutter_charset_detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fflutter_charset_detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amake%2Fflutter_charset_detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amake","download_url":"https://codeload.github.com/amake/flutter_charset_detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243961652,"owners_count":20375282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","charset","charset-detector","encoding","flutter","ios","plugin","text-encoding"],"created_at":"2024-10-13T02:11:14.944Z","updated_at":"2025-03-17T02:30:58.228Z","avatar_url":"https://github.com/amake.png","language":"Dart","funding_links":["https://github.com/sponsors/amake"],"categories":[],"sub_categories":[],"readme":"# flutter_charset_detector\n\nAutomatically detect and decode the charset (character encoding) of text bytes.\n\n\u003cimg width=\"300\" src=\"https://pbs.twimg.com/media/EhnW3CvU4AAz03s?format=png\u0026name=4096x4096\"\u003e\n\n_The example app; [details](./example/README.md)_\n\nThis plugin uses native libraries derived from the universal charset detection\nlibraries created by Mozilla.\n\n- iOS, macOS:\n  [UniversalDetector2](https://cocoapods.org/pods/UniversalDetector2), a thin\n  wrapper around [uchardet](https://www.freedesktop.org/wiki/Software/uchardet/)\n- Android:\n  [juniversalchardet](https://github.com/albfernandez/juniversalchardet), a Java\n  implementation of universalchardet\n- Web: [jschardet](https://github.com/aadsm/jschardet), a JavaScript port of the\n  Python [chardet](https://github.com/chardet/chardet)\n\n## Supported platforms\n\n- Android 4.1 (SDK 16) and higher\n- iOS 11 and higher\n- macOS 10.14 and higher\n- Web (requires [TextDecoder](https://caniuse.com/textencoder) support)\n\n## Supported charsets\n\nThe detectable charsets differ by platform according to the capabilities of the\nunderlying library; for specifics see:\n\n- [iOS, macOS](https://gitlab.freedesktop.org/uchardet/uchardet/-/blob/v0.0.8/README.md#supported-languagesencodings)\n- [Android](https://github.com/albfernandez/juniversalchardet/blob/v2.5.0/README.md#encodings-that-can-be-detected)\n- [Web](https://github.com/aadsm/jschardet/blob/v3.1.0/README.md#supported-charsets)\n\n## Usage\n\n```dart\nimport 'package:flutter_charset_detector/flutter_charset_detector.dart';\n\nUint8List bytes = getBytes(); // bytes with unknown encoding\nDecodingResult result = CharsetDetector.autoDecode(bytes);\nprint(result.charset); // =\u003e e.g. 'SHIFT_JIS'\nprint(result.string); // =\u003e e.g. '日本語'\n```\n\n## See also\n\n- [charset_converter](https://pub.dev/packages/charset_converter) if you already\nknow the name of the charset you want to encode/decode\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famake%2Fflutter_charset_detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famake%2Fflutter_charset_detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famake%2Fflutter_charset_detector/lists"}