def force_encoding(self, encoding):
if not encoding:<EOL><INDENT>self.disabled = False<EOL><DEDENT>else:<EOL><INDENT>self.write_with_encoding(encoding, None)<EOL>self.disabled = True<EOL><DEDENT>
Sets a fixed encoding. The change is emitted right away.

        From now one, this buffer will switch the code page anymore.
        However, it will still keep track of the current code page.