SetUTF8 subroutine
Description
Establishes whether or not string data is interpreted as UTF-8 or ANSI.
Syntax
SetUTF8(onoff)
Note
SetUTF8() does not change the application's UTF8 mode permanently:
1) When used in event context the UTF8 mode is set to the same value as the application UTF8 mode (set in the Application Properties dialog) before each event is executed. If you wish to change the UTF8 mode for the remainder of the session use the SYSTEM object UTF8 property instead.
2) When used in an engine server context (e.g OECGI3) the UTF8 mode is set to the same value as the application UTF8 mode before it executes a stored procedures (such as RUN_OECGI_REQUEST).
If you wish to change the UTF8 mode permanently you can do so by using the UTF8 Character Mode checkbox in the Applications Properties dialog.
Parameters
The SetUTF8 subroutine has the following parameter.
Parameter | Description |
---|---|
onoff | 1=UTF-8 mode , 0 = ANSI mode |
See Also
Example
* characters are interpreted as UTF-8 call SetUTF8(1) * * processing with characters interpreted as UTF-8 * call SetUTF8(0) * * processing with characters interpreted as ANSI.