How to check whether text file is encoded in UTF-8 or ANSI or anything else?

Problem : How to check whether text file is encoded in UTF-8 or ANSI?
Solution : A very simple solution for Windows environment without using any extra software.

Method 1 : Open the file in notepad(Windows default text editor)
Now Click on 'Save As' in File menu.
The 'Encoding' combo box will tell you the current file encoding.

File Encoding
File Encoding
Method 2 : Second method requires a third party software, Notepad++.
Open the file in question with Notepad++.
At the bottom right of the editor, it will show the current encoding of the file.

File Encoding Notepad++
File Encoding Notepad++

0 nhận xét:

Đăng nhận xét