How can I determine file encodings on Windows / IIS ?
        Posted  
        
            by Dylan Beattie
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Dylan Beattie
        
        
        
        Published on 2010-03-16T14:26:25Z
        Indexed on 
            2010/04/14
            22:53 UTC
        
        
        Read the original article
        Hit count: 378
        
From the answers to this question it appears there's a file somewhere on our server that's been saved with the wrong encoding.
I've seen this happen before - most often when pasting from Word into Visual Studio, when "smart quotes" can interfere with Visual Studio's encoding settings when saving the file.
Thing is - the problem I'm having involves 20-30 different script files, include files and so on (hey, that was how we kept it modular back in the day...) and I really don't want to open every one of them in Visual Studio and check the file encodings individually.
Is there any way I can analyze a folder tree full of files and spit out a list of each filename along with the text encoding used to save the file? (Or - if encodings aren't clearly specified - work out what encoding Microsoft IIS thinks was used to save the file?)
© Stack Overflow or respective owner