1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

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

Discussion in 'All Other Software' started by Asenine, Feb 25, 2009.

Thread Status:
Not open for further replies.
Advertisement
  1. Asenine

    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. :)
     
  2. TheOutcaste

    TheOutcaste

    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
     
  3. Squashman

    Squashman 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.
     
  4. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
  5. Asenine

    Asenine Thread Starter

    Joined:
    Apr 19, 2007
    Messages:
    182
    Thanks guys, Outcaste's one worked. :)
     
  6. Squashman

    Squashman 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.
     
  7. Sponsor

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 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/804289

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice