Converts a string from the local code page to UTF-8.
#include <unilib.h> int loc2utf8 ( UniRuleTable_t handle, char *dest, const char *src, char noMapCh, int noMapFlag);
(IN) Specifies the table to use in the conversion. To use the host's default code page, specify UNI_LOCAL_DEFAULT. Otherwise, specify the value returned from the UniGetTable function.
(OUT) Points to the UTF-8 string
(IN) Points to the source string in local code page format.
(IN) Specifies an arbitrary character to be used in place of a source character for which no mapping can be found in the table. The noMapFlag parameter determines whether this character is used.
(IN) Specifies whether to replace an unmappable character or simply return an error. It uses one of the following flags:
If successful, returns 0. Otherwise, returns a negative error code:
For sample code, see UniLib.c.