Try OpenEdge Now
skip to main content
Internationalizing Applications
Using Unicode : Unicode support for supplementary characters : Behavior of ASC and CHR functions

Behavior of ASC and CHR functions

In the following example, assume -cpinternal is UTF-8 and the GUI code page is 1252:
ASC( '~U0254AE', "utf-32", "utf-8" )
This displays -191,978,590.
CHR accepts DECIMAL or INTEGER input values, so supplementary characters can be entered as positive values greater than the maximum integer ABL allows. The following examples display the multi-byte character consisting of the bytes 0xF4, 0x8E, 0xA3, and 0xA2:
DISPLAY CHR( 4102988706)
CHR( -191978590 )