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.

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

The URI to TrackBack this entry is: https://dmcmeans.wordpress.com/2010/07/01/convert-powerbuilder-export-from-unicode-to-ansi-text/trackback/

RSS feed for comments on this post.

One CommentLeave a comment

  1. Great tip. Thanks!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: