util_utf8_data_make_valid


Description:


[ Version ( since = "3.6" ) ]
public string util_utf8_data_make_valid (string? data, size_t data_bytes)

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 ("").

Parameters:

data

UTF-8 binary data

data_bytes

length of the binary data

Returns:

a newly-allocated string


Namespace: E