{"id":16119524,"url":"https://github.com/downgoon/gbk2utf8","last_synced_at":"2025-06-26T02:36:08.353Z","repository":{"id":52544375,"uuid":"75490098","full_name":"downgoon/gbk2utf8","owner":"downgoon","description":"convert files from gbk encoding to utf-8 or rename packages including java source codes and any type configuration files","archived":false,"fork":false,"pushed_at":"2021-04-26T16:38:11.000Z","size":50,"stargazers_count":79,"open_issues_count":5,"forks_count":43,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T09:11:18.268Z","etag":null,"topics":["gbk2utf8","package-rename","refactor"],"latest_commit_sha":null,"homepage":"","language":"Java","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/downgoon.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}},"created_at":"2016-12-03T17:45:13.000Z","updated_at":"2025-01-09T07:51:44.000Z","dependencies_parsed_at":"2022-08-28T16:10:23.351Z","dependency_job_id":null,"html_url":"https://github.com/downgoon/gbk2utf8","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/downgoon/gbk2utf8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downgoon%2Fgbk2utf8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downgoon%2Fgbk2utf8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downgoon%2Fgbk2utf8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downgoon%2Fgbk2utf8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/downgoon","download_url":"https://codeload.github.com/downgoon/gbk2utf8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/downgoon%2Fgbk2utf8/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261987648,"owners_count":23240885,"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":["gbk2utf8","package-rename","refactor"],"created_at":"2024-10-09T20:54:22.891Z","updated_at":"2025-06-26T02:36:08.324Z","avatar_url":"https://github.com/downgoon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# converting files encoding in some path from GBK to UTF8\n\n[![HitCount](http://hits.dwyl.io/downgoon/gbk2utf8.svg)](http://hits.dwyl.io/downgoon/gbk2utf8) [![Join the chat at https://gitter.im/gbk2utf8/Lobby](https://badges.gitter.im/gbk2utf8/Lobby.svg)](https://gitter.im/gbk2utf8/Lobby?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) [![GitHub stars](https://img.shields.io/github/stars/downgoon/gbk2utf8.svg)](https://github.com/downgoon/gbk2utf8/stargazers) [![GitHub forks](https://img.shields.io/github/forks/downgoon/gbk2utf8.svg)](https://github.com/downgoon/gbk2utf8/network) \n\n## how to run\n\n### for any platform\n\n``java -jar gbk2utf8-0.1.1-SNAPSHOT-all.jar $src-gbk-path $dst-utf8-path``\n\nfor help, run ``java -jar gbk2utf8-0.1.1-SNAPSHOT-all.jar``\n\n**NOTE**\n\n\u003ea precompiled package is available at [v0.1.1 Releases](https://github.com/downgoon/gbk2utf8/releases/tag/v0.1.1), you can go to this page and download it directly.\n\n### for Mac platform  (64bit)\n\n- download [gbk2utf8-0.1.1.pkg](https://github.com/downgoon/gbk2utf8/releases/download/v0.1.1/gbk2utf8-0.1.1.pkg)\n- double click it and install\n- run command\n\n```\n$ gbk2utf8        # converting from gbk2 to utf8\nUsage: Gbk2Utf8 \u003csrc-gbk-path\u003e \u003cdst-utf8-path\u003e [include-extension (default 'java')]\n$ gbk2utf8 convert\nUsage: Gbk2Utf8 \u003csrc-gbk-path\u003e \u003cdst-utf8-path\u003e [include-extension (default 'java')]\n$ gbk2utf8 pkgrename # rename package\nUsage: PackageRename \u003csrc-path\u003e \u003cdst-path\u003e \u003coriginal-package-prefix\u003e \u003calternative-package-prefix\u003e\nExample: PackageRename ~/original ~/alternative com.example. io.downgoon\n$ gbk2utf8 version\n0.1.1\n```\n\n**NOTE**\n\u003e``gbk2utf8-0.1.1.pkg`` will be installed in /usr/local/gbk2utf8 directory and a softlink /usr/local/bin/gbk2utf8 (linking to /usr/local/gbk2utf8/bin/gbk2utf8) will be created. \n\n![installing gbk2utf8-0.1.1.pkg](https://cloud.githubusercontent.com/assets/23731186/24492177/081a1266-155d-11e7-91bd-207fd2c9a2f7.png)\n\n\n### for Ubuntu platform  (64bit)\n\n- download\n```\nwget  https://github.com/downgoon/gbk2utf8/releases/download/v0.1.1/gbk2utf8_0.1.1_armhf.deb\n```\n\n- install\n```\ndpkg -i gbk2utf8_0.1.1_armhf.deb\n```\n\n- run\n\n```\n$ gbk2utf8        # converting from gbk2 to utf8\nUsage: Gbk2Utf8 \u003csrc-gbk-path\u003e \u003cdst-utf8-path\u003e [include-extension (default 'java')]\n$ gbk2utf8 convert\nUsage: Gbk2Utf8 \u003csrc-gbk-path\u003e \u003cdst-utf8-path\u003e [include-extension (default 'java')]\n$ gbk2utf8 pkgreanme   # package renaming\nUsage: Gbk2Utf8 \u003csrc-gbk-path\u003e \u003cdst-utf8-path\u003e [include-extension (default 'java')]\n$ gbk2utf8 version\n0.1.1\n```\n\n\n\n-----\n\n## how to build\n\n\tgit clone https://github.com/downgoon/gbk2utf8.git\n\tcd gbk2utf8\n\tmvn clean package\n\tjava -jar target/gbk2utf8-0.0.1-SNAPSHOT-all.jar $src-gbk-path $dst-utf8-path\t\n\t\n## Highlight\n\n* **recursive** converting all necessary files in the specified path\n* **encoding detective** do nothing to files not encoded in GBK in specified path \n\n## how to package\n\nsee [https://github.com/downgoon/pkgmaker](https://github.com/downgoon/pkgmaker)\n\n---\n\n## package rename  (a new tool)\n\n``java -cp ./gbk2utf8-0.0.1-SNAPSHOT-all.jar io.downgoon.tools.PackageRename $src-gbk-path $dst-utf8-path \u003csrc-path\u003e \u003cdst-path\u003e \u003coriginal-package-prefix\u003e \u003calternative-package-prefix\u003e``\n\n---\n\n## Use Cases\n\n- [taobao metaq](https://github.com/killme2008/Metamorphosis/issues/130)\n\n---\n\n## 反馈问题\n\n如果您有不清楚的地方或更好的建议，请在**Issue**中给我们反馈。\n操作步骤如下：\n\n1. 找到**Issue**入口\n![Issue入口](https://cloud.githubusercontent.com/assets/23731186/20863916/7075a704-ba17-11e6-8d18-3670c59c5781.png)\n\n2. 新建**Issue**\n![新建Issue](https://cloud.githubusercontent.com/assets/23731186/20863922/beb848ae-ba17-11e6-93e9-4a6278d8816a.png)\n\n3. 别忘了最好设置一个**Issue**类型\n![反馈问题](https://cloud.githubusercontent.com/assets/23731186/20863944/254c597a-ba18-11e6-9df7-d6f23ca1cf7e.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdowngoon%2Fgbk2utf8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdowngoon%2Fgbk2utf8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdowngoon%2Fgbk2utf8/lists"}