Home » Questions » Computers [ Ask a new question ]

Batch change encoding ascii files from utf-8 to iso-8859-1 [duplicate]

Batch change encoding ascii files from utf-8 to iso-8859-1 [duplicate]

"I need a tool like this
http://www.rotatingscrew.com/utfcast.aspx"

Asked by: Guest | Views: 250
Total answers/comments: 2
Guest [Entry]

"You can use iconv from GNUWin32, it works the same as the GNU/Linux counterpart:

iconv -f UTF-8 -t ISO-8859-1 filename.txt

you can then use it with batch, provided you've added it to your %PATH%:

for /f %x in ('dir /b *.txt') do iconv -f UTF-8 -t ISO-8859-1 %x"
Guest [Entry]

"ConvertEncoding link is now dead - use either of these programs which will encode the files for you:

Python Unicode
Perl Encode"