Function

Purpleurl_encode

since: 2.0

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.

Available since: 2.0

Parameters

str

Type: 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

Type: const char*

The resulting string.

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