'Convert character reference, may be overridden.'

def convert_charref(self, name):

    try:
        n = int(name)
    except ValueError:
        return
    if (not (0 <= n <= 127)):
        return
    return self.convert_codepoint(n)
