Determine File Encoding

Vote This Post DownVote This Post Up (No Ratings Yet)
Loading ... Loading ...

I ran into a problem where I wasn’t sure if I could trust the encoding that my text editor was displaying. I also wanted to check the encoding on about 10,000 files and determine if it was not a specific encoding. So, I created a small little program to tell me the encoding of a file. This in combination with powershell allowed me to loop recursively through all the files in a directory and create a list of the files that were not the correct encoding.

Must of the code that I used in this little application was taken from the following site:

http://www.personalmicrocosms.com/Pages/dotnettips.aspx?c=15&t=17#tip



One Response to “Determine File Encoding”

  1. sampe Says:

    Hello,

    What exactly this exe should do? I’m looking for exactly the same kind of program, but I didn’t notice anything, when I ran your program.

    I’d appreciate, if you could give me more advice…

Leave a Reply