def detectEncodingMeta(self):
buffer = self.rawStream.read(self.numBytesMeta)<EOL>assert isinstance(buffer, bytes)<EOL>parser = EncodingParser(buffer)<EOL>self.rawStream.seek(<NUM_LIT:0>)<EOL>encoding = parser.getEncoding()<EOL>if encoding is not None and encoding.name in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>encoding = lookupEncoding("<STR_LIT:utf-8>")<EOL><DEDENT>return encoding<EOL>
Report the encoding declared by the meta element