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`