Install Enca On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

Install Enca On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

enca

Detect and convert encoding of text files.

Maintainer: Michal u010cihau0159



Section: text

Install enca

  • Debian apt-get install enca Click to copy
  • Ubuntu apt-get install enca Click to copy
  • Alpine OS apk add enca Click to copy
  • Arch Linux pacman -S enca Click to copy
  • Kali Linux apt-get install enca Click to copy
  • Fedora dnf install enca Click to copy
  • Raspbian apt-get install enca Click to copy
  • macOS brew install enca Click to copy

Detect and convert encoding of text files.

How to use enca?

Below are few example commands for enca that you can use in the terminal.

Detect file(s) encoding according to your system's locale:
enca file(s)Click to copy
Detect file(s) encoding; -L option tells enca the current language; language is in the POSIX/C locale format, e.g. zh_CN, en_US etc:
enca -L language file(s)Click to copy
Convert file(s) to specified encoding:
enca -L language -x to_encoding file(s)Click to copy
Save original_file as new_file and convert new_file to specified encoding:
enca -L language -x to_encoding < original_file > new_fileClick to copy
Install the latest version of enca in Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS from terminal. To install the enca just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of enca from the respository and install it in your computer/server.