'Required:
utf_text -- such as &xxx;
Returns:
token converted to the capital equivalent
Logic:
RTF often stores text in the improper values. For example, a
capital umlaut o (?), is stores as ?. This function swaps the
case by looking up the value in a dictionary.'

def __utf_token_to_caps_func(self, char_entity):

    hex_num = char_entity[3:]
    length = len(hex_num)
    if (length == 3):
        hex_num = ('00%s' % hex_num)
    elif (length == 4):
        hex_num = ('0%s' % hex_num)
    new_char_entity = ('&#x%s' % hex_num)
    converted = self.__caps_uni_dict.get(new_char_entity)
    if (not converted):
        return char_entity
    else:
        return converted
