2014-09-03 21:21:30 +01:00
|
|
|
# iconv
|
|
|
|
|
2024-04-25 23:58:21 +01:00
|
|
|
> Convert text from one encoding to another.
|
2021-08-23 20:33:24 +01:00
|
|
|
> More information: <https://manned.org/iconv>.
|
2014-09-03 21:21:30 +01:00
|
|
|
|
2022-12-04 07:53:34 +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`
|