Displaying Chinese on 5250 screens

Tags:
Application development
CLP
Printing
RPG
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.
ASKED: June 30, 2006  3:48 PM
UPDATED: December 11, 2009  7:51 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following