tldr/pages/common/iconv.md

16 lines
291 B
Markdown
Raw Normal View History

2014-09-04 00:21:30 +04:00
# 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`