Encoding.getFromCharset

Gets a #GtkSourceEncoding from a character set such as "UTF-8" or "ISO-8859-1".

class Encoding
static
getFromCharset
(
string charset
)

Parameters

charset string

a character set.

Return Value

Type: gtksource.encoding.Encoding

the corresponding #GtkSourceEncoding, or null if not found.