<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def SetCodepage(self, codepage):
 """Sets the codepage. Args: codepage (str):
 codepage. Raises: ValueError: if the codepage is not supported. """

    try:
      codecs.getencoder(codepage)
      self._codepage = codepage
    except LookupError:
      raise ValueError('Unsupported codepage: {0:s}'.format(codepage))