code: def handle_charref(self, ref):
          "Handle character references as data."
          if self.convertEntities:
              data = unichr(int(ref))
          else:
              data = '&#%s;' % ref
          self.handle_data(dataf handle_charref(self, ref):
          "Handle character references as data."
          if self.convertEntities:
              data = unichr(int(ref))
          else:
              data = '&#%s;' % ref
          self.handle_data(data)
docs: Handle character references as data.