File.getEncoding

gtksource.encoding.Encoding getEncoding() nothrow

The encoding is initially null. After a successful file loading or saving operation, the encoding is non-null.

Returns

the character encoding.