Encoding Keys in the [Environment] Section

Table 74 describes the encoding keys in the [Environment] section of SQR.INI. All of these encoding settings will accept as valid values any of the encoding literals. Any encoding can be specified for any encoding setting entry.

Table 74. Encoding Keys in the [Environment] Section

Encoding Key

Description

Encoding

Default encoding.

Encoding-Console

Encoding used for console input and output.

Encoding-Database

Encoding used for interfacing with the database.

Encoding-File-Input

Default encoding used for “OPEN” for-reading files and argument files.

Encoding-File-Output

Default encoding used for “OPEN” for-writing files.

Encoding-Report-Output

Default encoding used for report output, such as, SPF, LIS, HTM, etc.

Encoding-SQR-Source

Encoding used for Production Reporting source and include files.

The following is an example of encoding settings in the [Environment] section:

[Environment:Common]
Encoding=ISO-8859-1
Encoding-File-Output=Greek
Encoding-File-Input=Shift-Jis
Encoding-Report-Output=UCS-2
Encoding-database=utf-8
Encoding-console=ascii
Encoding-SQR-Source=ucs-2

If these keys are not specified, encodings default to ASCII. The Encoding setting, which specifies the default encoding, can be overridden by the other encoding settings.

As with other [Environment] section settings, Production Reporting first checks the [Environment] section of its database type and then checks the [Common Environment] section. For example, an ODBC version of Production Reporting first checks the [Environment:ODBC] section of SQR.INI for a setting and, if not found, then checks the [Environment:Common] section.

To access these encoding settings within an Production Reporting program, use the following reserved variables.