'Return the output character set.
This is self.output_charset if that is not None, otherwise it is
self.input_charset.'

def get_output_charset(self):

    return (self.output_charset or self.input_charset)
