Declaration [src]

purple_utf8_ncr_encode (
  const char* in

Description [src]

Given a string, this replaces any utf-8 substrings in that string with the corresponding numerical character reference, and returns a newly allocated string.


in const char*

The string which might contain utf-8 substrings.

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

Return value

Returns: char*

A new string, with utf-8 replaced with numerical character references, free this with g_free()

 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.