gtksource.encoding
Module for [Encoding] class
class Encoding
Types 1
classEncoding : gobject.boxed.Boxed
Character encoding.
The #GtkSourceEncoding boxed type represents a character encoding. It is used for example by #GtkSourceFile. Note that the text in GTK widgets is always encoded in UTF-8.
Methods
gtksource.encoding.Encoding copy()Used by language bindings. Returns: a copy of enc.string getCharset()Gets the character set of the #GtkSourceEncoding, such as "UTF-8" or "ISO-8859-1". Returns: the character set of the #GtkSourceEncoding.string getName()Gets the name of the #GtkSourceEncoding such as "Unicode" or "Western". Returns: the name of the #GtkSourceEncoding.string toString_()gtksource.encoding.Encoding[] getAll()Gets all encodings. Returns: a list of all #GtkSourceEncoding's. Free with [glib.slist.SList.free].gtksource.encoding.Encoding getCurrent()Gets the #GtkSourceEncoding for the current locale.gtksource.encoding.Encoding[] getDefaultCandidates()Gets the list of default candidate encodings to try when loading a file.gtksource.encoding.Encoding getFromCharset(string charset)Gets a #GtkSourceEncoding from a character set such as "UTF-8" or "ISO-8859-1".