iconv

Converts text from one encoding to another.

Install

All systems
curl cmd.cat/iconv.sh
Debian Debian
apt-get install libc-bin
Ubuntu
apt-get install libc-bin
Arch Arch Linux
pacman -S plan9port
image/svg+xml Kali Linux
apt-get install libc-bin
CentOS
yum install glibc-common
Fedora
dnf install glibc-common
OS X
brew install plan9port
Raspbian
apt-get install libc-bin

Converts text from one encoding to another.

  • Convert file to a specific encoding, and print to stdout:
    iconv -f from_encoding -t to_encoding input_file
  • Convert file to the current locale's encoding, and output to a file:
    iconv -f from_encoding input_file > output_file
  • List supported encodings:
    iconv -l

© tl;dr; authors and contributors