1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 06:15:26 +02:00
tldr/pages/common/iconv.md

17 lines
470 B
Markdown
Raw Normal View History

2014-09-03 22:21:30 +02:00
# iconv
> Convert text from one encoding to another.
> More information: <https://manned.org/iconv>.
2014-09-03 22:21:30 +02:00
- Convert file to a specific encoding, and print to `stdout`:
2014-09-03 22:21:30 +02:00
`iconv {{[-f|--from-code]}} {{from_encoding}} {{[-t|--to-code]}} {{to_encoding}} {{input_file}}`
2014-09-03 22:21:30 +02: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-code]}} {{from_encoding}} {{input_file}} > {{output_file}}`
2014-09-03 22:21:30 +02:00
- List supported encodings:
2014-09-03 22:21:30 +02:00
`iconv {{[-l|--list]}}`