def get_input_encoding():
 encoding = getattr(sys.stdin, 'encoding', None)
 if (encoding is None):
  encoding = 'ascii'
 return encoding

def get_input_encoding ( ) : encoding = getattr ( sys . stdin , 'encoding' , None ) if ( encoding is None ) : encoding = 'ascii' return encoding
return the default standard input encoding .