Function

EDataServerutil_utf8_make_valid

since: 3.0

Declaration [src]

gchar*
e_util_utf8_make_valid (
  const gchar* str
)

Description [src]

Returns a newly-allocated copy of str, with invalid characters replaced by Unicode replacement characters (U+FFFD). For NULL str returns newly allocated empty string (“”).

Available since: 3.0

Parameters

str

Type: const gchar*

A UTF-8 string.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gchar*

A newly-allocated string.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.