Use the iconv
utility to convert files between character sets.
iconv -c -t WINDOWS-1252 some-utf8-file.txt > some-file-with-windows-character-set.txt
The -c
option above discards characters that are not in the output characer set.
List available sets with the -l
option:
iconv -l
Read the documentation for other options.
Hat tip to this post.