'The name of the character encoding
that was used to decode the input stream,
or :obj:`None` if that is not determined yet.'

@property
def documentEncoding(self):

    if (not hasattr(self, u'tokenizer')):
        return None
    return self.tokenizer.stream.charEncoding[0].name
