Try OpenEdge Now
skip to main content
Internationalizing Applications
Understanding Code Pages : Determining which code page an application component uses : OpenEdge databases
 

OpenEdge databases

There are several options that can be used to determine the code page of an OpenEdge database, and some are described in this section.
To determine the code page of an OpenEdge database:
1. Start the Procedure Editor.
2. Within the Procedure Editor, start the Data Dictionary utility, connect to the database, then exit the Data Dictionary utility.
3. From the Procedure Editor main menu, select Tools > Data Administration > Utilities > Information. The Session Information window opens.
4. In the Session Information window, search for the Database Code Page label.
Immediately to its right, the name of the database's code page appears.
Another option is to examine the metaschema field, _Db._Db-xl-name. To display this field, run the following code fragment:
FIND FIRST _Db.
DISPLAY _Db._Db-Xl-Name.
Yet another option is to use the DBCODEPAGE function in a procedure, as shown in the following code fragment:
DEFINE VARIABLE ix AS INTEGER NO-UNDO.
REPEAT ix = 1 TO NUM-DBS: /* For every connected database */
DISPLAY DBCODEPAGE(ix).
END.
For more information on the DBCODEPAGE function, see OpenEdge Development: ABL Reference.