GMimeFilterCharset

GMimeFilterCharset — Charset-conversion filter

Synopsis

struct              GMimeFilterCharset;
GMimeFilter *       g_mime_filter_charset_new           (const char *from_charset,
                                                         const char *to_charset);

Description

A GMimeFilter which is used for converting text from one charset to another.

Details

struct GMimeFilterCharset

struct GMimeFilterCharset {
	GMimeFilter parent_object;
	
	char *from_charset;
	char *to_charset;
	iconv_t cd;
};

A filter to convert between charsets.

GMimeFilter parent_object;

parent GMimeFilter

char *from_charset;

charset that the filter is converting from

char *to_charset;

charset the filter is converting to

iconv_t cd;

charset conversion state

g_mime_filter_charset_new ()

GMimeFilter *       g_mime_filter_charset_new           (const char *from_charset,
                                                         const char *to_charset);

Creates a new GMimeFilterCharset filter.

from_charset :

charset to convert from

to_charset :

charset to convert to

Returns :

a new charset filter or NULL if the charset conversion is not possible.