code: def SetCodepage(self, codepage):
      
      try:
        codecs.getencoder(codepage)
        self._codepage = codepage
      except LookupError:
        raise ValueError('Unsupported codepage: {0:s}'.format(codepage))
docs: Sets the codepage.
  
      Args:
        codepage (str): codepage.
  
      Raises:
        ValueError: if the codepage is not supported.