I am running Gnu iconv from a .bat file in Windows Vista (Sorry about that!)
"C:\Program Files\GnuWin32\bin\iconv.exe" -f ISO-8859-1 -t UTF-8 "%1" > "%1"
If I call
> batch.bat "S:\gutschein_info.php"
It executes as
> "C:\Program Files\GnuWin32\bin\iconv.exe" -f ISO-8859-1 -t UTF-8
"S:\gutschein_info.php" 1> "S:\gutschein_info.php"
Then gutschein_info.php is empty. Where does the ” 1>” come from? Why is it not working?
Btw: Finally I would like to convert a whole folder:
FOR %%i IN (%1*) DO "C:\Program Files\GnuWin32\bin\iconv.exe" -f ISO-8859-1 -t UTF-8 %%i > %%i
iconv does not work if input file is the same as the output file. So
iconv ... %1 > %1ist empty buticonv ... %1 > utf8/%1works. My script: