code: def force_encoding(self, encoding):
          
          if not encoding:
              self.disabled = False
          else:
              self.write_with_encoding(encoding, None)
              self.disabled = True
docs: 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.