1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 06:18:17 +01:00
tldr/pages/common/iconv.md
2016-05-03 08:27:32 +01:00

356 B

iconv

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