Displaying Chinese on 5250 screens
Hello, I need to change some CL driven green-screen menus to display Chinese instead of English. We don't need to change the applications or data behind the menus ... just the menus themselves which are actually driven by message files with a display file and some CLP. Does anyone know of a straightforward solution on how to put Chinese characters to a green-screen? Thanks in advance.

Software/Hardware used:
ASKED: June 30, 2006  3:48 PM
UPDATED: December 11, 2009  7:51 AM

Answer Wiki:
In order to display Chinese Characters, you must use the Double-byte Character System (DBCS). You specify a "shift-in" character that tells the screen display that you are entering DBCS. The screen then interprets every two characters after that as ONE DBCS character. Just like "F1" hex is the number "1" in the Single Byte Character System (SBCS), "F3E2" is some gobbledy-gook chinese/russian/sanskrit/japanese ideogram in the DBCS. When you reach the end of DBCS characters, you specify a "shift-out" character that tells the screen display to go back to SBCS. By the way. You may think you don't need to rearrange your data fields, but the truth is, DBCS ends up requiring "couplets" of two bytes. A SINGLE ideographich character requires a minimum of four bytes. One byte for the "shift-in", two bytes for the ideograph, and one byte for the "shift-out". I don't remember exactly what hex values are the "shift-in" and "shift-out" characters. I "think" they might be 0x0E and 0x0F. Again, I'm not sure. I haven't messed with DBCS in about 15 years backe when I was stuck in Korea once.
Last Wiki Answer Submitted:  July 3, 2006  2:03 pm  by  MadDogDing   0 pts.
All Answer Wiki Contributors:  MadDogDing   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

On what “green-screen”? A 5250 terminal in a Chinese-language system environment? An emulator window on a PC that only has English installed? Some other combination?

Tom

 108,135 pts.