enca

enca

TLDR

Detect file(s) encoding according to the system's locale

>_ enca [file1 file2 ...]
copy

Detect file(s) encoding specifying a language in the POSIX/C locale format (e.g. zh_CN, en_US)

>_ enca -L [language] [file1 file2 ...]
copy

Convert file(s) to a specific encoding

>_ enca -L [language] -x [to_encoding] [file1 file2 ...]
copy

Create a copy of an existing file using a different encoding

>_ enca -L [language] -x [to_encoding] < [original_file] > [new_file]
copy

Copied to clipboard
free 100$ digital ocean credit