I'm trying to transcode a bunch a files from ASCII to UTF-8.
For that, I tried using iconv
:
iconv -f US-ASCII -t UTF-8 infile > outfile
-f ENCODING
the encoding of the input
-t ENCODING
the encoding of the output
Still that file didn't convert to UTF-8. It is a .dat file.
Before posting this, I searched Google and found information like:
ASCII is a subset of UTF-8, so all ASCII files are already UTF-8 encoded. The bytes in the ASCII file and the bytes that would result from "encoding it to UTF-8" would be exactly the same bytes. There's no difference between them.
Force encode from US-ASCII to UTF-8 (iconv)
Best way to convert text files between character sets?
Still the above links didn't help.
Even though it is in ASCII it will support UTF-8 as UTF-8 is a super set, the other party who is going to receive the files from me need file encoding as UTF-8. He just need file format as UTF-8.
Any suggestions please.