cocot

Converts character encodings and code formats in terminal

brewmacoslinux
Try with needOr install directly
Source

About

Code converter on tty

Commands

cocot

Examples

Convert file from Shift-JIS to UTF-8 encoding$ cocot -f sjis -t utf8 input.txt > output.txt
Display available encoding conversions$ cocot --help
Convert piped input from EUC-JP to UTF-8$ cat file.txt | cocot -f eucjp -t utf8