class IRB::ReadlineInputMethod

def encoding

The external encoding for standard input.
def encoding
  @stdin.external_encoding
end