A3DMiscUTF8ToUnicode

A3DStatus A3DMiscUTF8ToUnicode(const A3DUTF8Char *pcInputBuffer, A3DUTF8Char acOutputBuffer[])
A3DStatus A3DMiscUTF8ToUnicode(const A3DUTF8Char* pcInputBuffer, A3DUTF8Char acOutputBuffer)

Converts UTF-8 encoded characters to UTF-16 strings on Windows.

2.0

This function returns a UTF-16 string on Windows.

You must cast the string to a wide char pointer (wchar_t*) depending on the target computer’s characteristics.

On Linux, this API simply copies the input A3DUTF8Char* string into the output A3DUTF8Char* string.

Return Values

A3D_SUCCESS:

A3D_INVALID_ENTITY_NULL:

A3D_INITIALIZE_NOT_CALLED:

Returns

A3D_SUCCESS on success, or an error code on failure