Converts a string to a UTF-8 string by copying to the destination buffer.
@param str The source string instance
@param dest The destination buffer to copy to.
@param len The size of the destination buffer.
@return Returns the full size of the string-- you can use this for
pre-allocation purposes: call this method once with a NULL
destination and 0 length to get the size to allocate your
destination buffer, and then call it again to actually
convert the string.
Converts a string to a UTF-8 string by copying to the destination buffer.
@param str The source string instance
@param dest The destination buffer to copy to.
@param len The size of the destination buffer.
@return Returns the full size of the string-- you can use this for pre-allocation purposes: call this method once with a NULL destination and 0 length to get the size to allocate your destination buffer, and then call it again to actually convert the string.