charsetName Property

Class: Runtime

Description

This property returns the name of the character set that is used by the process.

 

This is a read-only property, and the value to the property does not change during the lifetime of a process. Try to avoid code that relies on the value of this property. PSL provides classes and methods that hide the character set specifics, and help you to write character set independent application code.

 

The value of this property impacts the way in which characters are treated by the application, including the way data is stored in the database. For this reason, all processes that share access to a common database run with identical values of Runtime.charsetName.

Syntax

type String CHSETNM = Runtime.charsetName

Returns

When Became Available

Profile V7.0

Example

// The example below calls different subroutines depending on the

// the value of Runtime.charsetName

//

if Runtime.charsetName="UTF-8" do {

do UTF8^READPROC()

}

else  do M^READPROC()