Function

Purpleurl_encode

Declaration [src]

const char*
purple_url_encode (
  const char* str
)

Description [src]

Encodes a URL into an escaped string.

This will change non-alphanumeric characters to hex codes.

Parameters

str const char*
 

The string to translate.

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

Return value

Returns: const char*
 

The resulting string.

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