code: def set_encoding(self, value=DEFAULT_ENCODING):
          
          if self._conn.encoding != value:
              self._conn.set_client_encoding(value)
docs: Set the client encoding for the session if the value specified
          is different than the current client encoding.
  
          :param str value: The encoding value to use