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
"M"
If the process runs in an environment that does not support Unicode,
or if Unicode character handling has been turned off in that environment.
"UTF-8"
If the process runs in an environment that uses UTF-8 to represent
characters.
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()