SourceEncoding.getFromCharset

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

class SourceEncoding
static
getFromCharset
(
string charset
)

Parameters

charset string

a character set.

Return: the corresponding #GtkSourceEncoding, or %NULL if not found.

Meta

Since

3.14