{"id":25883143,"url":"https://github.com/maxlath/fix-utf8","last_synced_at":"2025-03-02T16:31:33.435Z","repository":{"id":57150773,"uuid":"89593535","full_name":"maxlath/fix-utf8","owner":"maxlath","description":"Fix Unicode encoding errors","archived":false,"fork":false,"pushed_at":"2024-07-17T10:54:48.000Z","size":64,"stargazers_count":26,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-26T18:49:53.150Z","etag":null,"topics":["utf8"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxlath.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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":{"liberapay":"Association_Inventaire"}},"created_at":"2017-04-27T12:11:53.000Z","updated_at":"2024-08-12T19:29:26.000Z","dependencies_parsed_at":"2024-06-18T20:05:36.346Z","dependency_job_id":"3295218b-ecf4-4dd4-96b0-a398402dbcb6","html_url":"https://github.com/maxlath/fix-utf8","commit_stats":{"total_commits":35,"total_committers":4,"mean_commits":8.75,"dds":0.1428571428571429,"last_synced_commit":"b25fccae76775bf0e3a7472754614a272291e7ba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Ffix-utf8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Ffix-utf8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Ffix-utf8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Ffix-utf8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxlath","download_url":"https://codeload.github.com/maxlath/fix-utf8/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241537331,"owners_count":19978512,"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":["utf8"],"created_at":"2025-03-02T16:31:32.881Z","updated_at":"2025-03-02T16:31:33.433Z","avatar_url":"https://github.com/maxlath.png","language":"JavaScript","funding_links":["https://liberapay.com/Association_Inventaire"],"categories":[],"sub_categories":[],"readme":"# fix-utf8\n\nA function that tries its best to recover lost Latin Unicode characters, based on the [UTF-8 Encoding Debugging Chart](http://www.i18nqa.com/debug/utf8-debug.html#dbg)\n\nAlso takes the opportunity to [normalize](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize) the passed string, replacing any [combined group of characters](https://en.wikipedia.org/wiki/Combining_character) by their corresponding glyph.\n\n## Install\n\n```sh\n$ npm install fix-utf8\n```\n\n## How-To\n\n```js\nimport fixUtf8 from 'fix-utf8'\n\nfixUtf8(\"L'avenir des idÃ©es\")\n// =\u003e \"L'avenir des idées\"\n```\n\n## See Also\n* [forceutf8](https://github.com/neitanod/forceutf8) (PHP)\n\n## License\n[MIT](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlath%2Ffix-utf8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxlath%2Ffix-utf8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlath%2Ffix-utf8/lists"}