'Report the encoding declared by the meta element'

def detectEncodingMeta(self):

    buffer = self.rawStream.read(self.numBytesMeta)
    parser = EncodingParser(buffer)
    self.rawStream.seek(0)
    encoding = parser.getEncoding()
    if (encoding in ('utf-16', 'utf-16-be', 'utf-16-le')):
        encoding = 'utf-8'
    return encoding
