cheat:iconv
# To convert file (iconv.src) from iso-8859-1 to utf-8 and save to /tmp/iconv.out
iconv -f iso-8859-1 -t utf-8 iconv.src -o /tmp/iconv.out
tldr:iconv
# iconv
# Converts text from one encoding to another.
# More information: <https://manned.org/iconv>.
# Convert file to a specific encoding, and print to `stdout`:
iconv -f from_encoding -t to_encoding input_file
# Convert file to the current locale's encoding, and output to a file:
iconv -f from_encoding input_file > output_file
# List supported encodings:
iconv -l
$
cheat.sh