Skip to content

Latest commit

 

History

51 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

transcode

This command line do text file encoding conversions.

GitHub go.mod Go version Build GitHub license

Installation

> go install github.com/gonejack/transcode@latest

Usage

By arguments:

> transcode source.txt
> transcode -s gbk -t utf8 source.txt

By stdin:

> cat source.txt | transcode

Flags

Flags:
  -h, --help                      Show context-sensitive help.
  -s, --source-encoding="auto"    Set source encoding, default as auto-detection.
  -t, --target-encoding="utf8"    Set target encoding, default as utf8.
  -d, --detect-encoding           Detect encoding only.
  -w, --overwrite                 Overwrite source file.
  -l, --list-encodings            list supported encodings
      --about                     Show about.

Acknowledgements

Thanks to charamel for the encoding detection model and to cpython-wasi-build for the CPython WASI release used by the embedded detector runtime.

关于

This command line do text file encoding converts

Topics

Resources

Stars

6 stars

关注者

1 watching

复刻s

发布

贡献者

Languages