Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for isunicode.bat

(view source code of isunicode.bat as plain text)

  1. @ECHO OFF
  2. :: Based on code by "jaclaz" on MSFN.ORG
  3. :: http://www.msfn.org/board/topic/158633-how-to-check-text-file-encoding-from-command-line/#comment-1014056
  4. IF "%~1"=="" (
  5. 	ECHO Usage:  %~n1  textfilename
  6. 	GOTO:EOF
  7. )
  8. FOR /F %%A IN (%1) DO (
  9. 	ECHO ANSI
  10. 	GOTO:EOF
  11. )
  12. ECHO Unicode
  13.  

page last modified: 2024-04-16; loaded in 0.0058 seconds