This function is used for set the encoding for a given model.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiSetModelStringEncoding (SdaiServerContext serverContextId,
SdaiModel modelId,
SdaiInteger stringEncoding,
SdaiInvocationId *edmiInvocationId);
Arguments:
serverContextId |
Remote Server Context |
modelId |
A numeric modelID that uniquely identifies the model that holds the instances to be validated. |
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