|  |  |  | GMime 2.4 Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
| gmime-iconv-utilsgmime-iconv-utils — High-level routines for converting text from one charset to another | 
char * g_mime_iconv_strdup (iconv_t cd, const char *str); char * g_mime_iconv_strndup (iconv_t cd, const char *str, size_t n); char * g_mime_iconv_utf8_to_locale (const char *str); char * g_mime_iconv_utf8_to_locale_length (const char *str, size_t n); char * g_mime_iconv_locale_to_utf8 (const char *str); char * g_mime_iconv_locale_to_utf8_length (const char *str, size_t n);
char *              g_mime_iconv_strdup                 (iconv_t cd,
                                                         const char *str);
Allocates a new string buffer containing str converted to the
destination charset described in cd.
| 
 | conversion descriptor | 
| 
 | string in source charset | 
| Returns : | a new string buffer containing the original string converted to the new charset. | 
char *              g_mime_iconv_strndup                (iconv_t cd,
                                                         const char *str,
                                                         size_t n);
Allocates a new string buffer containing the first n bytes of str
converted to the destination charset as described by the conversion
descriptor cd.
| 
 | conversion descriptor | 
| 
 | string in source charset | 
| 
 | number of bytes to convert | 
| Returns : | a new string buffer containing the first nbytes ofstrconverted to the destination charset as described by the
conversion descriptorcd. | 
char * g_mime_iconv_utf8_to_locale (const char *str);
Allocates a new string buffer containing str converted to the
user's locale charset.
| 
 | string in UTF-8 charset | 
| Returns : | a new string buffer containing strconverted to the
user's locale charset. | 
char *              g_mime_iconv_utf8_to_locale_length  (const char *str,
                                                         size_t n);
Allocates a new string buffer containing the first n bytes of
str converted to the user's locale charset.
| 
 | string in UTF-8 charset | 
| 
 | number of bytes to convert | 
| Returns : | a new string buffer containing the first nbytes ofstrconverted to the user's locale charset. | 
char * g_mime_iconv_locale_to_utf8 (const char *str);
Allocates a new string buffer containing str in UTF-8.
| 
 | string in locale charset | 
| Returns : | a new string buffer containing strconverted to UTF-8. | 
char *              g_mime_iconv_locale_to_utf8_length  (const char *str,
                                                         size_t n);
Allocates a new string buffer containing the first n bytes of
str converted to UTF-8.
| 
 | string in locale charset | 
| 
 | number of bytes to convert | 
| Returns : | a new string buffer containing the first nbytes ofstrconverted to UTF-8. |