(view source code of isunicode.bat as plain text)
@ECHO OFF
:: Based on code by "jaclaz" on MSFN.ORG
:: http://www.msfn.org/board/topic/158633-how-to-check-text-file-encoding-from-command-line/#comment-1014056
IF "%~1"=="" (
ECHO Usage: %~n1 textfilename
GOTO:EOF
)
FOR /F %%A IN (%1) DO (
ECHO ANSI
ECHO Unicode
page last modified: 2024-04-16; loaded in 0.0070 seconds