Fit multi-byte characters around formatting characters
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Before OpenEdge displays a multi-byte character, if the next byte in the format specification is a formatting character, such as a dash, OpenEdge inserts a space, then the dash, then searches the format specification for the next two available contiguous columns.
For example, consider the following format, which consists of three bytes, a hyphen formatting character, and four bytes:
|
You want to display the following string, which consists of four double-byte characters:
![]() |
The result is the following string, which consists of the first double-byte character, a blank, the hyphen formatting symbol, the second double-byte character, and third double-byte character:
![]() |
To build the resulting string, the AVM:
- Displays the first double-byte character
- Notices that only one column remains before the hyphen formatting character
- Inserts a blank in that column
- Displays the hyphen formatting character
- Displays the second double-byte character
- Displays the third double-byte character
- Notices that no more space remains
- Decides not to display the fourth double-byte character

