{"id":20457529,"url":"https://github.com/takwolf/character-encoding-utils","last_synced_at":"2025-04-13T05:27:27.863Z","repository":{"id":163403378,"uuid":"638805669","full_name":"TakWolf/character-encoding-utils","owner":"TakWolf","description":"Some character encoding utils","archived":false,"fork":false,"pushed_at":"2025-03-25T02:43:33.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T03:28:19.367Z","etag":null,"topics":["big5","character","characters","encoding","encodings","gb2312","ksx1001","shift-jis"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/character-encoding-utils/","language":"Python","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/TakWolf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-10T06:33:17.000Z","updated_at":"2025-03-25T02:43:37.000Z","dependencies_parsed_at":"2023-11-06T08:25:24.160Z","dependency_job_id":"7b29852f-afb6-437b-ac2d-95edd6a793f8","html_url":"https://github.com/TakWolf/character-encoding-utils","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TakWolf%2Fcharacter-encoding-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TakWolf%2Fcharacter-encoding-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TakWolf%2Fcharacter-encoding-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TakWolf%2Fcharacter-encoding-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TakWolf","download_url":"https://codeload.github.com/TakWolf/character-encoding-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248667671,"owners_count":21142491,"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":["big5","character","characters","encoding","encodings","gb2312","ksx1001","shift-jis"],"created_at":"2024-11-15T12:07:42.212Z","updated_at":"2025-04-13T05:27:27.853Z","avatar_url":"https://github.com/TakWolf.png","language":"Python","readme":"# Character Encoding Utils\n\n[![Python](https://img.shields.io/badge/python-3.10-brightgreen)](https://www.python.org)\n[![PyPI](https://img.shields.io/pypi/v/character-encoding-utils)](https://pypi.org/project/character-encoding-utils/)\n\nSome [character encoding](https://en.wikipedia.org/wiki/Character_encoding) utils.\n\nNow support:\n\n- [GB2312](https://en.wikipedia.org/wiki/GB_2312)\n- [Big5](https://en.wikipedia.org/wiki/Big5)\n- [Shift-JIS](https://en.wikipedia.org/wiki/Shift_JIS)\n- [KS-X-1001](https://en.wikipedia.org/wiki/KS_X_1001)\n\n## Installation\n\n```shell\npip install character-encoding-utils\n```\n\n## Usage\n\n### GB2312\n\n```python\nfrom character_encoding_utils import gb2312\n\nbs = gb2312.encode('abc中国')\nassert gb2312.decode(bs) == 'abc中国'\n```\n\n### Big5\n\n```python\nfrom character_encoding_utils import big5\n\nbs = big5.encode('abc中國')\nassert big5.decode(bs) == 'abc中國'\n```\n\n### Shift-JIS\n\n```python\nfrom character_encoding_utils import shiftjis\n\nbs = shiftjis.encode('abc日本')\nassert shiftjis.decode(bs) == 'abc日本'\n```\n\n### KS-X-1001\n\n```python\nfrom character_encoding_utils import ksx1001\n\nbs = ksx1001.encode('abc가쳰')\nassert ksx1001.decode(bs) == 'abc가쳰'\n```\n\n## License\n\n[MIT License](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakwolf%2Fcharacter-encoding-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakwolf%2Fcharacter-encoding-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakwolf%2Fcharacter-encoding-utils/lists"}