gonejack/transcode

Is it possible automatically detect(guess) the encoding of a file

Opened this issue · 2 comments

So that:

Set source encoding

This option can be avoid.

This has another benefit: for example, if the input file is already UTF8, we don't need to change it.

Hi, @asmwarrior

Would you like to try v1.0.4 which contains auto-detection by running

go install github.com/gonejack/transcode@latest

Hi, thanks, I don't have a go build environment, so I think I will try the prebuild binaries here:

https://github.com/gonejack/transcode/releases/tag/v1.0.4

BTW: what I think the best way is something like this:
https://github.com/amrali-eg/EncodingChecker

EncodingChecker can automatically detect the encoding, and do a convert. But It is a Windows dotNet tool, and your tool is cross platform, also a command line tool is more flexible.