{"id":32146637,"url":"https://github.com/fumoboy007/universalcharsetdetection","last_synced_at":"2025-10-21T08:18:20.973Z","repository":{"id":63910719,"uuid":"242404811","full_name":"fumoboy007/UniversalCharsetDetection","owner":"fumoboy007","description":"A Swift wrapper around the `uchardet` library to detect the character encoding of a sequence of bytes.","archived":false,"fork":false,"pushed_at":"2020-04-19T23:31:38.000Z","size":248,"stargazers_count":9,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-16T16:32:38.134Z","etag":null,"topics":["character-encoding","charset-detection","charset-detector","swift","swift4-2","swift5","uchardet"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fumoboy007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-UCHARDET","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-22T20:10:24.000Z","updated_at":"2025-10-10T09:10:18.000Z","dependencies_parsed_at":"2022-11-29T07:16:39.415Z","dependency_job_id":null,"html_url":"https://github.com/fumoboy007/UniversalCharsetDetection","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fumoboy007/UniversalCharsetDetection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumoboy007%2FUniversalCharsetDetection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumoboy007%2FUniversalCharsetDetection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumoboy007%2FUniversalCharsetDetection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumoboy007%2FUniversalCharsetDetection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fumoboy007","download_url":"https://codeload.github.com/fumoboy007/UniversalCharsetDetection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumoboy007%2FUniversalCharsetDetection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280226084,"owners_count":26293943,"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","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["character-encoding","charset-detection","charset-detector","swift","swift4-2","swift5","uchardet"],"created_at":"2025-10-21T08:18:18.336Z","updated_at":"2025-10-21T08:18:20.966Z","avatar_url":"https://github.com/fumoboy007.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UniversalCharsetDetection\n\nA Swift wrapper around the [`uchardet` library](https://www.freedesktop.org/wiki/Software/uchardet/) to detect the [character encoding](https://en.wikipedia.org/wiki/Character_encoding) of a sequence of bytes.\n\n`uchardet` is more versatile than [`NSString.stringEncoding(for:encodingOptions:convertedString:usedLossyConversion:)`](https://developer.apple.com/documentation/foundation/nsstring/1413576-stringencoding) because\n- it supports many more encodings;\n- it supports streaming large files; and\n- its output is compatible with [`iconv`](https://en.wikipedia.org/wiki/Iconv).\n\n## Usage\n\nCompatible with Swift 4.2+.\n\n- To integrate the library into your project, add a dependency on this package in your project’s Swift Package Manager configuration file or in your Xcode 11+ project.\n- To detect the character encoding of a file, see `CharacterEncodingDetector+File`.\n- To detect the character encoding of a collection of bytes, see `DataProtocol+CharacterEncoding`.\n- To detect the character encoding of a manually-provided stream of bytes, see `CharacterEncodingDetector`.\n\n## License\n\nSee the `LICENSE.md` file.\n\n## Contributing\n\nSince the Swift Package Manager does not yet support binary dependencies, we copy the `uchardet` source code into the `Sources/Cuchardet` directory to enable the Swift Package Manager to build and link with the `uchardet` library. See the `adapt-uchardet-to-swiftpm` script.\n\nTo change the version of the `uchardet` library, run the following commands in the root of the source code directory tree:\n```\n$ git init uchardet\n$ git submodule update --remote uchardet\n$ cd uchardet\n$ git checkout \u003cmaster or tag name\u003e\n$ cd ..\n$ ./adapt-uchardet-to-swiftpm\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumoboy007%2Funiversalcharsetdetection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffumoboy007%2Funiversalcharsetdetection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumoboy007%2Funiversalcharsetdetection/lists"}