## AnjutaEncoding AnjutaEncoding — Text encoding and decoding |

## Stability Level

Unstable, unless otherwise indicated

## Synopsis

    #include <libanjuta/anjuta-encodings.h>

                        AnjutaEncoding;
    const AnjutaEncoding* anjuta_encoding_get_from_charset  (const gchar *charset);
    const AnjutaEncoding* anjuta_encoding_get_from_index    (gint index);
    gchar*              anjuta_encoding_to_string           (const AnjutaEncoding *enc);
    const gchar*        anjuta_encoding_get_charset         (const AnjutaEncoding *enc);
    GList*              anjuta_encoding_get_encodings       (GList *encoding_strings);
    void                anjuta_encodings_init               (AnjutaPreferences *pref,
                                                             GladeXML *gxml);
    #define             SAVE_ENCODING_ORIGINAL
    #define             SAVE_ENCODING_CURRENT_LOCALE
    #define             SUPPORTED_ENCODINGS

## Description

## Details

### AnjutaEncoding

    typedef struct _AnjutaEncoding AnjutaEncoding;

### anjuta_encoding_get_from_charset ()

    const AnjutaEncoding* anjuta_encoding_get_from_charset  (const gchar *charset);

Gets AnjutaEncoding object corresponding to the given character set

`charset` : | Character set for the encoding.
Returns : | AnjutaEncoding object for the given charset

### anjuta_encoding_get_from_index ()

    const AnjutaEncoding* anjuta_encoding_get_from_index    (gint index);

Retrieves AnjutaEncoding object at the given index.

`index` : |
Returns : | AnjutaEncoding object at the index `idx`.

### anjuta_encoding_to_string ()

    gchar*              anjuta_encoding_to_string           (const AnjutaEncoding *enc);

Returns the string form of the given encoding.

`enc` : | an AnjutaEncoding object
Returns : | string name of the encoding.

### anjuta_encoding_get_charset ()

    const gchar*        anjuta_encoding_get_charset         (const AnjutaEncoding *enc);

Gets the character set for the given encoding.

`enc` : | an AnjutaEncoding object
Returns : | Character set

### anjuta_encoding_get_encodings ()

    GList*              anjuta_encoding_get_encodings       (GList *encoding_strings);

Returns list of encoding objects for the given names.

`encoding_strings` : |
Returns : | list of AnjutaEncoding objects

### anjuta_encodings_init ()

    void                anjuta_encodings_init               (AnjutaPreferences *pref,
                                                             GladeXML *gxml);

Initializes the encodings system.

`pref` : | an AnjutaPreferences object.
`gxml` : | an GladeXML object holding encodings dialog.

### SAVE_ENCODING_ORIGINAL

    #define SAVE_ENCODING_ORIGINAL            "save.encoding.original"

### SAVE_ENCODING_CURRENT_LOCALE

    #define SAVE_ENCODING_CURRENT_LOCALE      "save.encoding.current.locale"

### SUPPORTED_ENCODINGS

    #define SUPPORTED_ENCODINGS               "supported.encodings"