Possible Duplicate:
How do I detect the encoding of some text?
How to distinguish the unicode text file and others of a text file?
I am doing a bulk upload file using java. first I write the inputs in excel file and then I do save as Unicode text(.txt) file. Then I will upload the Unicode text file, and read from my java class.
Here I have a problem. I can distinguish the .txt files and other than text files. But how can i find a file whether it is Unicode text file or other text file.