java -jar gbk2utf8-0.1.1-SNAPSHOT-all.jar $src-gbk-path $dst-utf8-path
for help, run java -jar gbk2utf8-0.1.1-SNAPSHOT-all.jar
NOTE
a precompiled package is available at v0.1.1 Releases, you can go to this page and download it directly.
- download gbk2utf8-0.1.1.pkg
- double click it and install
- run command
$ gbk2utf8 # converting from gbk2 to utf8
Usage: Gbk2Utf8 <src-gbk-path> <dst-utf8-path> [include-extension (default 'java')]
$ gbk2utf8 convert
Usage: Gbk2Utf8 <src-gbk-path> <dst-utf8-path> [include-extension (default 'java')]
$ gbk2utf8 pkgrename # rename package
Usage: PackageRename <src-path> <dst-path> <original-package-prefix> <alternative-package-prefix>
Example: PackageRename ~/original ~/alternative com.example. io.downgoon
$ gbk2utf8 version
0.1.1
NOTE
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.
- download
wget https://github.com/downgoon/gbk2utf8/releases/download/v0.1.1/gbk2utf8_0.1.1_armhf.deb
- install
dpkg -i gbk2utf8_0.1.1_armhf.deb
- run
$ gbk2utf8 # converting from gbk2 to utf8
Usage: Gbk2Utf8 <src-gbk-path> <dst-utf8-path> [include-extension (default 'java')]
$ gbk2utf8 convert
Usage: Gbk2Utf8 <src-gbk-path> <dst-utf8-path> [include-extension (default 'java')]
$ gbk2utf8 pkgreanme # package renaming
Usage: Gbk2Utf8 <src-gbk-path> <dst-utf8-path> [include-extension (default 'java')]
$ gbk2utf8 version
0.1.1
git clone https://github.com/downgoon/gbk2utf8.git
cd gbk2utf8
mvn clean package
java -jar target/gbk2utf8-0.0.1-SNAPSHOT-all.jar $src-gbk-path $dst-utf8-path
- recursive converting all necessary files in the specified path
- encoding detective do nothing to files not encoded in GBK in specified path
see https://github.com/downgoon/pkgmaker
java -cp ./gbk2utf8-0.0.1-SNAPSHOT-all.jar io.downgoon.tools.PackageRename $src-gbk-path $dst-utf8-path <src-path> <dst-path> <original-package-prefix> <alternative-package-prefix>
如果您有不清楚的地方或更好的建议,请在Issue中给我们反馈。 操作步骤如下: