CODEPAGE Property
10.0A, PLBCMP GUI Only
The CODEPAGE property allows a user program to declare the encode format of program data being used when the program interacts with the HTMLCONTROL object. The property uses the following format:
CODEPAGE={type}
Note the following:
The CODEPAGE property can be used in CREATE, GETPROP, or SETPROP statements for an HTMLCONTROL object.
{type} is a decimal number, a Numeric Variable, or Expression,. The supported values and keywords are:
|
Value |
Meaning |
|
0 |
There is NO data conversion. The data is transferred to the HTMLCONTROL exactly as provided by the user program. |
|
1 |
The user program transferred to the HTMLCONTROL is converted to UTF-8. This is the default behavior when the CODEPAGE is not being used by a user program. |
|
400 to 65536 |
These values can be specified to define a Windows codepage used when converting the program data into UTF-8 which is transferred to the HTMLCONTROL. |
Any invalid {type} values cause the default behavior the same as described by a value of one (1).
By default, all data must be in UTF-8 encoded format as the data is sent or received when the PL/B runtime interfaces with the client browser.
This property can turn the PL/B runtime UTF-8 data encoding on or off for the HTMLCONTROL object.
When using a Windows based PL/B runtime, this property declares whether a specific Windows codepage value ( 400 to 65536 ) is used when transforming the program data into the UTF-8 encode format.
This property only affects the program data when using the INNERHTML property or the GetAttr or SetAttr methods.
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |