Terminal.setEncoding

Changes the encoding the terminal will expect data from the child to be encoded with. For certain terminal types, applications executing in the terminal can change the encoding. If @codeset is %NULL, it uses "UTF-8".

class Terminal
bool
setEncoding
(
string codeset
)

Parameters

codeset string

a valid #GIConv target, or %NULL to use UTF-8

Return Value

Type: bool

%TRUE if the encoding could be changed to the specified one, or %FALSE with @error set to %G_CONVERT_ERROR_NO_CONVERSION.

Throws

GException on failure.

Meta