[ Version ( deprecated = true , deprecated_since = "0.54" ) ]
public bool set_encoding (string? codeset) throws Error
Warning: set_encoding is deprecated since 0.54.
Changes the encoding the terminal will expect data from the child to be encoded with.
Support for non-UTF-8 is deprecated.
For certain terminal types, applications executing in the terminal can change the encoding. If codeset is
null, it uses "UTF-8".
Note: Support for non-UTF-8 is deprecated and may get removed altogether. Instead of this function, you should use a wrapper like luit(1) when spawning the child process.
| this |
a Terminal |
| codeset |
target charset, or null to use UTF-8 |
|
true if the encoding could be changed to the specified one, or false with throws set to g_convert_error_no_conversion. |