This function is used for obtaining the encoding constant from a given encoding name.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetModelStringEncoding (SdaiServerContext serverContextId,
SdaiString stringEncodingName,
SdaiInteger *stringEncoding,
SdaiInvocationId *edmiInvocationId);
Arguments:
serverContextId |
Remote Server Context |
stringEncodingName |
UTF-8 |
stringEncoding |
CHAR_ENCODING_UTF-8 |
|
|
edmiInvocationId |
When the edmiInvocationId is specified, the actual operation will be asynchronous and a handle (identifier) of the call will be returned in the edmiInvocationId argument. |
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an _EDMinterface_ error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE