SetUTF8 subroutine

Establishes whether or not string data is interpreted as UTF-8 or ANSI.

SetUTF8(onoff)

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.

The SetUTF8 subroutine has the following parameter.

ParameterDescription
onoff1=UTF-8 mode , 0 = ANSI mode
* 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.
  • guides/programming/programmers_reference_manual/setutf8.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1