Progress
Internationalization Guide
Guidelines For Using Multi-byte Characters
When you use multi-byte characters in Progress applications, the following guidelines apply:
- When choosing a Chinese, Japanese, or Korean font, choose one large enough to display each character cleanly and clearly.
- When designing an application that uses Chinese, Japanese, or Korean, leave sufficient space in the user interface for the IME.
- When using multi-byte characters, when using a 4GL element to calculate the length of a character string or a position within a character string, use the correct unit of measure, whether bytes, characters, or columns.
For more information on how to specify bytes, characters, or columns, see the 4GL element’s reference entry in the Progress Language Reference .
To have the compiler warn you of 4GL elements in the source code that should specify the unit of measure and that appear not to, start Progress with the Check Double-byte Enabled (-checkdbe) startup parameter. For more information on -checkdbe, see the Progress Startup Command and Parameter Reference .
- When displaying or printing characters, do not assume that one character requires one column.
- When assigning an accelerator to a menu item or label, use a single-byte character. If you use a multi-byte character, Windows underlines only the first byte.
For example, the following code fragment assigns the accelerator “A” to a button whose label is a double-byte character:
![]()
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |