Get encoding of a file in Windows

前端 未结 12 2230
忘了有多久
忘了有多久 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:33

    A simple solution might be opening the file in Firefox.

    1. Drag and drop the file into firefox
    2. Right click on the page
    3. Select "View Page Info"

    and the text encoding will appear on the "Page Info" window.

    Note: If the file is not in txt format, just rename it to txt and try again.

    P.S. For more info see this article.

提交回复
热议问题