2025-03-14 21:59:59 -06:00
|
|
|
# iconv
|
|
|
|
|
|
|
|
|
|
> Convert text from one encoding to another.
|
|
|
|
|
> More information: <https://manned.org/iconv>.
|
|
|
|
|
|
|
|
|
|
- Convert file to a specific encoding, and print to `stdout`:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`iconv {{[-f|--from-code]}} {{from_encoding}} {{[-t|--to-code]}} {{to_encoding}} {{input_file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Convert file to the current locale's encoding, and output to a file:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`iconv {{[-f|--from-code]}} {{from_encoding}} {{input_file}} > {{output_file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List supported encodings:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`iconv {{[-l|--list]}}`
|