Encoding.getFromCharset

gtksource.encoding.Encoding getFromCharset(string charset)

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

Parameters

charseta character set.

Returns

the corresponding #GtkSourceEncoding, or null

if not found.