def surrogatePairToCodepoint(data):
    char_val = ((65536 + ((ord(data[0]) - 55296) * 1024)) + (ord(data[1]) - 56320))
    return char_val
def surrogatePairToCodepoint(data):
    char_val = ((65536 + ((ord(data[0]) - 55296) * 1024)) + (ord(data[1]) - 56320))
    return char_val