Returns a newly-allocated NULL-terminated string with invalid characters replaced by Unicode replacement characters (U+FFFD).
For null
data
returns newly allocated empty string ("").
data |
UTF-8 binary data |
data_bytes |
length of the binary data |
a newly-allocated string |