All pastes #125187 Raw Edit

Bug #200230

public python v1 · immutable
·published 2006-08-10 13:40 UTC
rendered paste body
# input is u"abcd" returns <UABCD>def convertToUnicodePoints(uniString):	uniPointString = "<"	for c in uniString.decode("utf-8"):		uniPointString += 'U%04X' % (ord(c),)		uniPointString += "><"	# strip the last < & return		return uniPointString[:-1]