Solved: Does anyone know how to convert unicode files to ANSI?

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Asenine

Thread Starter
Joined
Apr 19, 2007
Messages
182
I am looking for a way to convert about 100 unicode text files from unicode to ANSI. I realise that notepad can do this by selecting Save As > ANSI, but as you can probably imagine that is a major headache when there are 100 to process.

I have been googling for a good hour now, but have been unable to locate any programs which will enable me to batch convert these en masse. Anyone got any ideas?

Thanks. :)
 
Joined
Aug 7, 2007
Messages
9,028
http://www.gbordier.com/gbtools/stringconverter.htm

Then a batch like this should do the trick:
Code:
 Setlocal
Set _source=C:\Textfiles
Set _dest=C:\UnicodeFiles
For /F "Tokens=*" %%I In ('dir /b /a-d "%_source%\*.txt"') Do stringconverter "%_source%\%%~nxI" "%_dest%\%%~nxI" /ANSI
Set your source and destination folders as needed. I haven't tested this program, just found it via Google, so best to test with a copy of your originals first.

Edit: The stringconverter.exe file needs to be in the same folder as the batch file, or in a folder that is on your path statement. Or you can add another variable to specify the path
HTH

Jerry
 

Squashman

Retired Trusted Advisor
Joined
Apr 4, 2003
Messages
19,786
Posted via Mobile Device
I just saw a batch file command yesterday that could do this. I am sure Outcastes solutions will work for sure.
 

Squashman

Retired Trusted Advisor
Joined
Apr 4, 2003
Messages
19,786
I found another piece of software to do it.
I use a program called V-The File Viewer. It has an option to change text files for Unicode to Ascii or Vice Versa. You can just select all the files, right click, select filename on the context menu, then select codepage.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Members online

Top