0 pts.
 Certain countries do not contain ASCII/EBCDIC characters. Now what?
Alan wrote in with this question recently: "We are taking orders, via the internet, from all over the world. It has come to our attention that orders from certain countries (Turkey for example) do not contain ASCII/EBCDIC characters, so that when the order is fed into our system, they are not translatable. Is there any way (via RPG, RPG ILE, CL, API's) for a text field to be scanned/interpreted to recognize for any untranslated characters?" Any idea what Alan can do? -- Debra Tart, associate editor, Search400.com

Software/Hardware used:
ASKED: January 9, 2006  8:41 PM
UPDATED: January 9, 2006  10:07 PM

Answer Wiki:
There are two general solutions to this, both involving _not_ translating before the characters get to your application. If you're writing in Java, you're set there, because Java tends to use Unicode. If you're using a Windows product, change all your routines from the A (ASCII) version to the W (wide) version. If you're in PL/1, change CHAR or CHARACTER to GRAPHIC. If you want to do the translation yourself, go ahead and do it in your program, and in your program, you can decide how to translate the characters. However, if you're acting internationally, the best bet is to change the back-end to have graphics. For instance, let's say I have this table in DB2: CREATE TABLE example( id INTEGER, code CHAR(2) NOT NULL, description VARCHAR(30) NOT NULL, PRIMARY KEY(id)); You can change the table quite easily to handle international symbols: CREATE TABLE example( id INTEGER, code GRAPHIC(2) NOT NULL, description VARGRAPHIC(30) NOT NULL, PRIMARY KEY(id)); You can do this using ALTER statements, without even having to move data around or create temp files. Here's where you want a Mac client. I can type in Unicode on my keyboard to just about any application, and certainly display unicode without having to worry about anything. I'm not sure how you do that part on the PC. --- Sheldon Linker Linker Systems, Inc. www.linkersystems.com sol@linker.com 800-315-1174 +1-949-552-1904
Last Wiki Answer Submitted:  January 9, 2006  10:07 pm  by  SheldonLinker   15 pts.
All Answer Wiki Contributors:  SheldonLinker   15 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _