setEncoding

open fun setEncoding(encoding: Encoding? = null)

Sets the encoding. If @encoding is null, the UTF-8 encoding will be set.

By default the encoding is taken from the #GtkSourceFile.

Parameters

encoding

the new encoding, or null for UTF-8.