{"id":13420859,"url":"https://github.com/jwerle/libutf8","last_synced_at":"2026-03-01T13:02:01.692Z","repository":{"id":11955595,"uuid":"14526775","full_name":"jwerle/libutf8","owner":"jwerle","description":"A whatwg compliant UTF8 encoding and decoding library","archived":false,"fork":false,"pushed_at":"2019-08-08T20:22:57.000Z","size":15,"stargazers_count":34,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-13T09:42:17.943Z","etag":null,"topics":["c","decode","encode","library","utf8"],"latest_commit_sha":null,"homepage":null,"language":"C","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/jwerle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-19T14:25:43.000Z","updated_at":"2025-07-06T09:40:23.000Z","dependencies_parsed_at":"2022-09-24T10:51:02.540Z","dependency_job_id":null,"html_url":"https://github.com/jwerle/libutf8","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jwerle/libutf8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Flibutf8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Flibutf8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Flibutf8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Flibutf8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwerle","download_url":"https://codeload.github.com/jwerle/libutf8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwerle%2Flibutf8/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29969700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T12:56:10.327Z","status":"ssl_error","status_checked_at":"2026-03-01T12:55:24.744Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","decode","encode","library","utf8"],"created_at":"2024-07-30T22:01:42.926Z","updated_at":"2026-03-01T13:01:56.684Z","avatar_url":"https://github.com/jwerle.png","language":"C","readme":"libutf8\n=======\n\nA whatwg compliant UTF8 encoding and decoding library based on this specification [http://encoding.spec.whatwg.org/](http://encoding.spec.whatwg.org/)\n\n## install\n\n***clib***:\n\n```sh\n$ clib install jwerle/libutf8\n```\n\n***source***:\n\n```sh\n$ make\n$ make test\n$ [sudo] make install\n```\n\n## usage\n\n```c\n\n#include \u003cstdio.h\u003e\n#include \u003cstdlib.h\u003e\n#include \u003cassert.h\u003e\n#include \u003cutf8.h\u003e\n\nint\nmain (void) {\n  char str[] = \"Foo © bar 𝌆 baz ☃ qux\";\n  char *enc = NULL; \n  char *dec = NULL;\n\n  enc = utf8_encode(str);\n  \n  if (NULL == enc) {\n    utf8_perror(\"encode\");\n    return 1;\n  }\n\n  dec = utf8_decode(enc);\n  \n  if (NULL == dec) {\n    utf8_perror(\"decode\");\n    return 1;\n  }\n\n  assert(0 == strcmp(str, dec));\n\n  return 0;\n}\n```\n\n## api\n\nSee [utf8.h](https://github.com/jwerle/libutf8/blob/master/utf8.h)\n\n## license\n\nMIT\n\n","funding_links":[],"categories":["TODO scan for Android support in followings"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Flibutf8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwerle%2Flibutf8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwerle%2Flibutf8/lists"}