How to get the file encoding value bye bat or powershell

December 29, 2015 at 17:38:11
Specs: Windows 7, i5 2520M / 8 GB
I have several files that I don't know what kind of encoding for these files. which command or script can check these files encoding. these files are text file

the procecss is

Input : file name

Output : Encoding type (Unicode, UTF-8, ASCII.....)

Please assist me to resolve this issue. Thanks!!!


See More: How to get the file encoding value bye bat or powershell

Report •

#1
December 30, 2015 at 06:29:51
If you use Notepad++ you can see the encoding of the file type in the bottom right corner. You are also able to change encodings.

https://notepad-plus-plus.org/

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)


Report •

#2
December 30, 2015 at 18:10:53
Notepad ++ is very usefull tool. Sorry! the execution enviroment don't allow Notepad ++

Report •

#3
December 31, 2015 at 13:07:19
I doubt there is a way of doing it with batch without 3rd party software, so I guess your best shot would be using PowerShell, unfortunately I don't know PS so I won't be able to help.

Don't worry if plan A fails, there are 25 more letters in the alphabet ;)


Report •
Related Solutions


Ask Question