wnow20 / unify

unify - 文件编码检测与批量转换

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File Unify

  • unify - Unify files' encoding from source charset to target. 批量转换文件编码
  • detect - Detect file's charset. 检测文件编码

How to use

unify 文件编码转换

# unify files in current path
unify -s GB-18030 -t GBK -x test4gbk.txt
# unify files in a specified path
unify -s GB-18030 -t UTF8 -x .java -p /Users/ge/workspace/bc/businesscenter

unify 文件编码检测

# 支持相对路径、绝对路径
unify detect -f cmd/test4gbk.txt

How to install

GOPROXY=https://goproxy.cn/,direct go install github.com/wnow20/unify@latest

About

unify - 文件编码检测与批量转换


Languages

Language:Go 94.1%Language:Makefile 5.9%