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