UTFConverter_16to8

Converts a NULL-terminated UTF-16 string to a NULL-terminated UTF-8 string.

Syntax

C++

 #include "UTFConverter.h"
 
 DIRXML_EXPORT 
 char * IFAPI						 UTFConverter_16to8 (
    const unicode   *utf16);				
 

Parameters

utf16
(IN) Points to the NULL-terminated UTF-16 to convert.

Return Values

If successful, returns a pointer to the converted string.

If an error occurs, returns NULL.

Remarks

The returned string must be freed with a call to the UTFConverter_free method.