Install Iconv On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Install Iconv On A Debian, Ubuntu, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

iconv

Converts text from one encoding to another.

Maintainer: GNU Libc Maintainers



Section: libs

Install iconv

  • Debian apt-get install libc-bin Click to copy
  • Ubuntu apt-get install libc-bin Click to copy
  • Arch Linux pacman -S plan9port Click to copy
  • Kali Linux apt-get install libc-bin Click to copy
  • CentOS yum install glibc-common Click to copy
  • Fedora dnf install glibc-common Click to copy
  • Raspbian apt-get install libc-bin Click to copy
  • macOS brew install plan9port Click to copy

Converts text from one encoding to another.

How to use iconv?

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

Convert file to a specific encoding, and print to stdout:
iconv -f from_encoding -t to_encoding input_fileClick to copy
Convert file to the current locale's encoding, and output to a file:
iconv -f from_encoding input_file > output_fileClick to copy
List supported encodings:
iconv -lClick to copy
Install the latest version of iconv in Debian, Ubuntu, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the iconv just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of iconv from the respository and install it in your computer/server.