encoding/2

"encoding(_Stream, Code " )

Show or set the encoding from the current stream.