Share via


RespectCursorCP Property

Specifies whether to take the code page of the cursor into consideration.

Note   The UTF8Encoded property works in conjunction with the setting of RespectCursorCP when UTF8Encoded is True (.T.).

RespectCursorCP applies only when executing the XMLAdapterToXML method, which creates XML consistent with its setting.

For more information about how code pages map to XML encoding attributes, see CURSORTOXML( ) Function.

XMLAdapter.RespectCursorCP [= lValue]

Property Values

  • lValue
    Logical data type. The following table lists the values for lValue.
    lValue Description
    False (.F.) Create XML with default Windows-1252 encoding. (Default)
    True (.T.) Set encoding to the code page of the cursor.

Remarks

For example, the following table describes how RespectCursorCP and UTF8Encoded interact with each other.

RespectCursorCP UTF8Encoded Conversion performed
False False Windows-1252 (Default)
True False Set output encoding attribute to the code page of the cursor.
False True Set output encoding attribute to UTF-8. No character translation occurs.
True True Set output encoding attribute to UTF-8. Translate character data to UTF-8.
True False Set output encoding attribute to the code page of the cursor.

See Also

Properties | XMLAdapter Object Properties, Methods, and Events | UTF8Encoded Property | ToXML Method

Applies To: XMLAdapter Class