{"id":20550203,"url":"https://github.com/dnmfarrell/encode-utf8-slow","last_synced_at":"2025-10-12T18:50:34.847Z","repository":{"id":56839563,"uuid":"64757844","full_name":"dnmfarrell/Encode-UTF8-Slow","owner":"dnmfarrell","description":"A naive UTF-8 encoder/decoder written in Perl","archived":false,"fork":false,"pushed_at":"2018-10-06T14:35:53.000Z","size":3,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T16:49:12.783Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/dnmfarrell.png","metadata":{"files":{"readme":"README.pod","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":"2016-08-02T13:10:32.000Z","updated_at":"2016-08-02T13:13:37.000Z","dependencies_parsed_at":"2022-08-29T05:00:49.164Z","dependency_job_id":null,"html_url":"https://github.com/dnmfarrell/Encode-UTF8-Slow","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FEncode-UTF8-Slow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FEncode-UTF8-Slow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FEncode-UTF8-Slow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FEncode-UTF8-Slow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnmfarrell","download_url":"https://codeload.github.com/dnmfarrell/Encode-UTF8-Slow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242157180,"owners_count":20081036,"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-16T02:23:49.563Z","updated_at":"2025-10-12T18:50:29.797Z","avatar_url":"https://github.com/dnmfarrell.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=encoding utf8\n\n=head1 NAME\n\nEncode::UTF8::Slow - A pure Perl, naive UTF-8 encoder/decoder\n\n=head1 SYNOPSIS\n\n  use Encode::UTF8::Slow qw/bytes_to_codepoint codepoint_to_bytes/;\n\n  my $bytes = codepoint_to_bytes(0x1F4FA); #television\n\n  my $codepoint = bytes_to_codepoint('🗼');\n\n=head1 FUNCTIONS\n\n=head2 codepoint_to_bytes\n\nTakes a Unicode codepoint number and returns a scalar of UTF-8 encoded bytes\nfor it. Exported on request.\n\n=head2 bytes_to_codepoint\n\nTakes UTF-8 encoded bytes in a scalar and returns the Unicode codepoint for it.\nExported on request.\n\n=head1 WARNING\n\nThis is a naive encoder - it doesn't handle UTF-16 pairs, BOM or other\nnoncharacters like 0xFFFE. It's also very slow!\n\n=head1 SEE ALSO\n\n=over 4\n\n=item *\n\nL\u003cUnicode::UTF8|https://metacpan.org/pod/Unicode::UTF8\u003e for a super fast UTF-8 encoder.\n\n=item *\n\nL\u003cBuilding a UTF-8 encoder in Perl|http://perltricks.com/article/building-a-utf-8-encoder-in-perl/\u003e my PerlTricks.com article about this code.\n\n=item *\n\nL\u003cRFC 3629|https://tools.ietf.org/html/rfc3629\u003e - which defines the current UTF-8 standard.\n\n=back\n\n=head1 REPOSITORY\n\nThis code is hosted at L\u003cGitHub|https://github.com/dnmfarrell/Encode-UTF8-Slow\u003e.\n\n=head1 AUTHOR\n\nE\u003ccopy\u003e 2016 David Farrell\n\n=head1 LICENSE\n\nFreeBSD, see LICENSE.\n\n\n=cut\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Fencode-utf8-slow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnmfarrell%2Fencode-utf8-slow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Fencode-utf8-slow/lists"}