Convert PowerBuilder Export from Unicode to ANSI Text

The library export using PBLPeeper gives you Unicode files (for PB 10+). These are hard to read in Eclipse.

To convert a mess of Unicode files to text, follow these steps.

Create a batch file, called ttt.bat, and put it some place convenient (e.g. C:\Save).

ttt.bat contains:

type %1 > %1.txt
copy %1.txt %1
del %1.txt

Now, in a cmd prompt, cd to your PB export folder and run this command

C:\Save\pb-src> for /R %F in (*) do C:\save\ttt.bat %F

Typing the file converts unicode to text. The batch file allows us to execute multiple commands in the for loop.

Published in: on July 1, 2010 at 2:06 pm  Comments (1)  
Tags: , , , ,