Do you know what encoding this file uses? If so, you can use iconv to convert it. This is a utility for converting from one character encoding to another. Therefore, if the source file is in UTF-8 and you want to convert it to ASCII, you can use the following:
iconv -f utf8 -t ascii <inputfile>
The file command in the input file can indicate the current encoding.
Interestingly, there is a command called enca that will do its best to determine the character encoding used if you know the language of the contents of the file.
This other question may be the answer.
source share