def ord(char):
 if isinstance(char, unicodeT):
  return __builtin__.ord(char)
 return __builtin__.ord(to_unicode(char, 'utf-8'))

def ord ( char ) : if isinstance ( char , unicodeT ) : return __builtin__ . ord ( char ) return __builtin__ . ord ( to_unicode ( char , 'utf-8' ) )
returns unicode id for utf8 or unicode *char* character suppose that *char* is an utf-8 or unicode character only .