You are not logged in.

1

Wednesday, October 8th 2003, 4:29am

Extended ASCII, cp-437 how do I get it?

I have recently taken the opportunity to switch to Linux. I develop Dataflex applications and had to upgrade the version of Dataflex. Before doing this I tested my code on the trial version. I was running RedHat 7.3 and Dataflex recommends running Dataflex in the KDE window. I used gedit to edit my source code. Everything was great. I cleaned out my computer (which I had bought of a RedHat Linux devotee who was going overseas) and installed RedHat 9.
Now Dataflex in KDE and gedit fail to correctly display the characters (from cp-437, chr(179) - chr(218)) which I had used to pretty up my menus and display windows.

I just cannot get to the bottom of this one. How do I get my characters back? Please remember I am a Linux newbie so you will have to spell it out for me.
Thanks
dbc

2

Thursday, October 9th 2003, 12:22am

I do not know what a dataflex application is.

Is it a KDE application or just a Linux text apllication?

If it is a KDE application, then bad luck, Qt has only IBM850 and do not plan to make IBM437. (The issue N29476 was refused by Trolltech.)

If it is a normal text application that you run in Konsole, then you can try to est the $LANG environment variable.

Something like:
export LANG=C@IBM437

(Sorry, I am not sure about the exact syntax.)

Have a nice day!

3

Thursday, October 9th 2003, 1:05am

Unfortunately, IBM-CP437 is obsolete. This is the standard code page for DOS.

KDE now uses UNICode so if it is a KDE application you will have to convert to UNICode.

If you open: "/usr/X11R6/lib/X11/fonts/encodings/ibm-cp437.enc" you have a conversion table.

Remember that this is hex so you will find the box drawing characters on page 37 (which is 25 in hex).

You can check with the KDE utility: KCharSelect and there are box drawing characters on page 37. There are MORE of them then in CP437.
--
JRT

4

Thursday, October 9th 2003, 1:09am

Well then you could perhaps use recode to make a quick switch

recode ibm437..utf8 yourcodefile.cpp

However the code would still need to be adapted after the change.

Have a nice day!