Function

Camelheader_decode_string

Declaration [src]

gchar*
camel_header_decode_string (
  const gchar* in,
  const gchar* default_charset
)

Description [src]

Decodes rfc2047 encoded-word tokens.

Parameters

in

Type: const gchar*

Input header value string.

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

Type: const gchar*

Default charset to use if improperly encoded.

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

Return value

Type: gchar*

A string containing the UTF-8 version of the decoded header value.

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.