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
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Convert file to a specific encoding, and print to stdout:
|
2014-09-03 21:21:30 +01:00
|
|
|
|
|
|
|
`iconv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}`
|
|
|
|
|
2016-05-03 08:27:32 +01:00
|
|
|
- Convert file to the current locale's encoding, and output to a file:
|
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`
|