tldr/pages/common/iconv.md

16 lines
295 B
Markdown
Raw Normal View History

2014-09-03 21:21:30 +01:00
# iconv
> Converts text from one encoding to another.
2014-09-03 21:21:30 +01:00
- Convert file and print to stdout:
2014-09-03 21:21:30 +01:00
`iconv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}`
- Convert file to current locale:
2014-09-03 21:21:30 +01:00
`iconv -f {{from_encoding}} {{input_file}} > {{output_file}}`
- List supported encodings:
2014-09-03 21:21:30 +01:00
`iconv -l`