Possible Duplicate:
How can I detect the encoding/codepage of a text file
I’ve been developing a winform system. And need to read txt file.
Unfortunately, there are many txt encoded files. I can’t read it use a specific encoding.
The problem is how to judge a txt file encoding.
In @Gens and @Samuel Neff cues, I solve the problem.
Here is my code.