{"id":13413574,"url":"https://github.com/endeveit/enca","last_synced_at":"2026-02-07T08:07:35.283Z","repository":{"id":24710062,"uuid":"28121701","full_name":"endeveit/enca","owner":"endeveit","description":"Minimal cgo bindings for libenca","archived":false,"fork":false,"pushed_at":"2016-03-15T07:18:17.000Z","size":23,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-31T20:52:34.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/endeveit.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":"2014-12-17T04:55:16.000Z","updated_at":"2023-11-01T21:11:39.000Z","dependencies_parsed_at":"2022-08-25T23:31:23.673Z","dependency_job_id":null,"html_url":"https://github.com/endeveit/enca","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/endeveit/enca","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endeveit%2Fenca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endeveit%2Fenca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endeveit%2Fenca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endeveit%2Fenca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endeveit","download_url":"https://codeload.github.com/endeveit/enca/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endeveit%2Fenca/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29189675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"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":[],"created_at":"2024-07-30T20:01:43.533Z","updated_at":"2026-02-07T08:07:35.266Z","avatar_url":"https://github.com/endeveit.png","language":"Go","readme":"# enca [![Build Status](https://travis-ci.org/endeveit/enca.svg?branch=master)](https://travis-ci.org/endeveit/enca)\n\nThis is a minimal cgo bindings for [libenca](http://cihar.com/software/enca/).\n\nIf you need to detect the language of a string you can use [guesslanguage](https://github.com/endeveit/guesslanguage) package.\n\n## Supported Go versions\n\nenca is tested against Go 1.0, 1.1, 1.2, 1.3 and tip.\n\n## Usage\n\nInstall libenca to your system:\n```\n$ sudo apt-get install libenca0 libenca-dev\n```\n\nInstall in your `${GOPATH}` using `go get -u github.com/endeveit/enca`\n\nThen call it:\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/endeveit/enca\"\n)\n\nfunc main() {\n\tanalyzer, err := enca.New(\"zh\")\n\n\tif err == nil {\n\t\tencoding, err := analyzer.FromString(\"美国各州选民今天开始正式投票。据信，\", enca.NAME_STYLE_HUMAN)\n\t\tdefer analyzer.Free()\n\n\t\t// Output:\n\t\t// UTF-8\n\t\tif err == nil {\n\t\t\tfmt.Println(encoding)\n\t\t}\n\t}\n}\n```\n\n## Documentation\n\ngodoc is available [here](http://godoc.org/github.com/endeveit/enca).\n","funding_links":[],"categories":["自然语言处理","Natural Language Processing","Text Processing","Specific Formats","文本處理","Microsoft Office","文本处理","Bot Building","\u003cspan id=\"文字处理-text-processing\"\u003e文字处理 Text Processing\u003c/span\u003e","文本处理`解析和操作文本的代码库`"],"sub_categories":["音译","Transliteration","HTTP Clients","高級控制台界面","Advanced Console UIs","交流","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","查询语","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendeveit%2Fenca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendeveit%2Fenca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendeveit%2Fenca/lists"}