This function is used for obtaining the constant encoding string from the encoding name.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiGetStringEncoding (SdaiString stringEncodingName,
SdaiInteger *stringEncoding);
Arguments:
stringEncodingName |
UTF-8 |
stringEncoding |
CHAR_ENCODING_UTF-8 |
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