Get encoding of a file in Windows

前端 未结 12 2172
忘了有多久
忘了有多久 2020-11-22 12:16

This isn\'t really a programming question, is there a command line or Windows tool (Windows 7) to get the current encoding of a text file? Sure I can write a little C# app b

12条回答
  •  暖寄归人
    2020-11-22 12:42

    If you have "git" or "Cygwin" on your Windows Machine, then go to the folder where your file is present and execute the command:

    file *
    

    This will give you the encoding details of all the files in that folder.

提交回复
热议问题