ASCII to UTF-8 conversion

I Am trying to change the file encoding from ASCII to UTF-8 using below command

iconv -f ASCII -t UTF-8 <input_file>  > <output_file>

But the output_file is not actually in UTF-8 format. If I use the file command to check the file encoding it still says ASCII.

While converting am not getting any error or any messages, prompt returns normally.

Am I doing anything wrong here?

Regards,
Sri

Probably just that your "file" command does not know about "UTF".
See the file /etc/magic .

The character set used for UTF-8 is still ASCII .

If I convert the same file to UTF-8 in windows , FTP to the UNIX and use the file command it shows as 'UTF-8 Unicode text'. But why its not happening when I use the iconv command ?

Suggest you take it up with the supplier of your O/S.

wow!! :-o

Could try a unix "diff" on the unix version against the Windows version and see if there are any significant differences.
If the file is something like XML format, the unix command "iconv" is not suitable.

It's hard to be specific without knowing what Operating System and version you have and something about your data and your Windows process.