getEncodingSupported

fnbool getEncodingSupported(string encoding)

Queries whether the legacy encoding encoding is supported.

If ICU support is not available, this function always returns false.

Note that UTF-8 is always supported; you can select it by passing null to [vte.terminal.Terminal.setEncoding].

Parameters

encodingthe name of the legacy encoding

Returns

true iff the legacy encoding encoding is supported