{"id":21806818,"url":"https://github.com/roguh/utf8analyzer","last_synced_at":"2025-07-05T05:05:24.785Z","repository":{"id":89928124,"uuid":"572820105","full_name":"roguh/utf8analyzer","owner":"roguh","description":"prints out each utf-8 codepoint, related byte sequences, and catches certain malformatted utf-8 strings","archived":false,"fork":false,"pushed_at":"2022-12-24T15:43:04.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T09:51:57.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/roguh.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}},"created_at":"2022-12-01T05:09:11.000Z","updated_at":"2022-12-01T05:09:22.000Z","dependencies_parsed_at":"2023-05-30T13:45:16.715Z","dependency_job_id":null,"html_url":"https://github.com/roguh/utf8analyzer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/roguh/utf8analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Futf8analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Futf8analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Futf8analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Futf8analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roguh","download_url":"https://codeload.github.com/roguh/utf8analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roguh%2Futf8analyzer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263687151,"owners_count":23496088,"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":[],"created_at":"2024-11-27T12:30:11.725Z","updated_at":"2025-07-05T05:05:24.732Z","avatar_url":"https://github.com/roguh.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# utf8analyzer\n\nRun this on some command line arguments to print out each UTF-8 codepoint, as well as the byte sequences related to the UTF-8 string.\n\nThis program can detect some types of malformatted UTF-8 strings.\n\n## Example usage\n\n```\n$ ./utf8analyzer\nUSAGE: ./utf8analyzer [strings to analyze]\n    prints out each utf-8 codepoint, related byte sequences, and catches certain malformatted utf-8 strings\n\n$ ./utf8analyzer test strings 🐠аaсдñ²不 012345\n4    bytes in #1         test\nbyte     1:  116 (0x74)  t\nbyte     2:  101 (0x65)  e\nbyte     3:  115 (0x73)  s\nbyte     4:  116 (0x74)  t\n\n4    utf8 codepoints in #1    (all ascii)   test\n\n7    bytes in #2         strings\nbyte     1:  115 (0x73)  s\nbyte     2:  116 (0x74)  t\nbyte     3:  114 (0x72)  r\nbyte     4:  105 (0x69)  i\nbyte     5:  110 (0x6e)  n\nbyte     6:  103 (0x67)  g\nbyte     7:  115 (0x73)  s\n\n7    utf8 codepoints in #2    (all ascii)   strings\n\n18   bytes in #3         🐠аaсдñ²不\nbyte     1:  240 (0xf0)  (not ascii)\nbyte     2:  159 (0x9f)  (not ascii)\nbyte     3:  144 (0x90)  (not ascii)\nbyte     4:  160 (0xa0)  (not ascii)\nbyte     5:  208 (0xd0)  (not ascii)\nbyte     6:  176 (0xb0)  (not ascii)\nbyte     7:   97 (0x61)  a\nbyte     8:  209 (0xd1)  (not ascii)\nbyte     9:  129 (0x81)  (not ascii)\nbyte    10:  208 (0xd0)  (not ascii)\nbyte    11:  180 (0xb4)  (not ascii)\nbyte    12:  195 (0xc3)  (not ascii)\nbyte    13:  177 (0xb1)  (not ascii)\nbyte    14:  194 (0xc2)  (not ascii)\nbyte    15:  178 (0xb2)  (not ascii)\nbyte    16:  228 (0xe4)  (not ascii)\nbyte    17:  184 (0xb8)  (not ascii)\nbyte    18:  141 (0x8d)  (not ascii)\n\n8    utf8 codepoints in #3                                        🐠аaсдñ²不\nutf8     1:  240 (0xf0)  159 (0x9f)  144 (0x90)  160 (0xa0)       🐠\nutf8     2:  208 (0xd0)  176 (0xb0)                               а\nutf8     3:   97 (0x61)                                           a\nutf8     4:  209 (0xd1)  129 (0x81)                               с\nutf8     5:  208 (0xd0)  180 (0xb4)                               д\nutf8     6:  195 (0xc3)  177 (0xb1)                               ñ\nutf8     7:  194 (0xc2)  178 (0xb2)                               ²\nutf8     8:  228 (0xe4)  184 (0xb8)  141 (0x8d)                   不\n\n6    bytes in #4         012345\nbyte     1:   48 (0x30)  0\nbyte     2:   49 (0x31)  1\nbyte     3:   50 (0x32)  2\nbyte     4:   51 (0x33)  3\nbyte     5:   52 (0x34)  4\nbyte     6:   53 (0x35)  5\n\n6    utf8 codepoints in #4    (all ascii)   012345\n```\n\n## Compiling\n\n```\ncc utf8analyzer.c -o utf8analyzer\n```\n\n## Compiling and testing\n\n```\ncc utf8analyzer.c -o utf8analyzer \u0026\u0026 ./utf8analyzer ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froguh%2Futf8analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froguh%2Futf8analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froguh%2Futf8analyzer/lists"}