Function sapnwrfc::binding::RfcSetTraceEncoding [] [src]

pub unsafe extern "C" fn RfcSetTraceEncoding(
    traceEncoding: *mut SAP_UC,
    errorInfo: *mut RFC_ERROR_INFO
) -> RFC_RC

Changes the character encoding to be used in trace files.

This function has the same effect as the sapnwrfc.ini parameter RFC_TRACE_ENCODING. See the documentation of that parameter in the sample ini file contained in the /demo directory of the NW RFC SDK.

Note: This API call affects only new trace files that will be opened after the call. The character encoding of already existing trace files is not changed in order to prevent confusion and garbage data...

\in *traceEncoding The new encoding. Possible values are "UTF-16", "UTF-8" and "DEFAULT". On Windows UTF-16 is recommended for faster performance. "DEFAULT" corresponds to the operating system's default character encoding, which is CP1252 or ISO-8859-1 on most Windows systems and UTF-8 on most Linux systems. \out *errorInfo Detail information in case of an invalid traceEncoding input. \return RFC_RC