From 129f3cdc3a66cbb0712baf9f640666d9e2403f6a Mon Sep 17 00:00:00 2001 From: Erik Vesteraas Date: Wed, 3 Sep 2014 22:21:30 +0200 Subject: [PATCH] Added docs for iconv --- pages/common/iconv.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/iconv.md diff --git a/pages/common/iconv.md b/pages/common/iconv.md new file mode 100644 index 000000000..57aa5e694 --- /dev/null +++ b/pages/common/iconv.md @@ -0,0 +1,15 @@ +# iconv + +> Converts text from one encoding to another + +- convert file and print to stdout + +`iconv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}` + +- convert file to current locale + +`iconv -f {{from_encoding}} {{input_file}} > {{output_file}}` + +- list supported encodings + +`iconv -l`