Skip to content

gonejack/transcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository 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.
  -w, --overwrite                 Overwrite source file.
      --about                     Show about.