GLib.IOChannel.prototype.get_encoding
function get_encoding(): String { // Gjs wrapper for g_io_channel_get_encoding() }
Gets the encoding for the input/output of the channel. The internal encoding is always UTF-8. The encoding null makes the channel safe for binary data.
- Returns
A string containing the encoding, this string is owned by GLib and must not be freed.