Terminal.getEncoding
string getEncoding() nothrowDetermines the name of the encoding in which the terminal expects data to be encoded, or null if UTF-8 is in use.
Returns
the current encoding for the terminal
Deprecated
Support for non-UTF-8 is deprecated.