2014-09-03 22:21:30 +02:00
|
|
|
# iconv
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
> Converts text from one encoding to another.
|
2021-08-23 22:33:24 +03:00
|
|
|
> More information: <https://manned.org/iconv>.
|
2014-09-03 22:21:30 +02:00
|
|
|
|
2021-01-31 14:05:18 -03:00
|
|
|
- Convert file to a specific encoding, and print to stdout:
|
2014-09-03 22:21:30 +02: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 22:21:30 +02:00
|
|
|
|
|
|
|
`iconv -f {{from_encoding}} {{input_file}} > {{output_file}}`
|
|
|
|
|
2016-01-07 18:31:27 +01:00
|
|
|
- List supported encodings:
|
2014-09-03 22:21:30 +02:00
|
|
|
|
|
|
|
`iconv -l`
|