def _ConvertToUnicode(some_string):
 if (some_string is None):
  return None
 if isinstance(some_string, unicode):
  return some_string
 return unicode(some_string, 'utf-8')

def _ConvertToUnicode ( some_string ) : if ( some_string is None ) : return None if isinstance ( some_string , unicode ) : return some_string return unicode ( some_string , 'utf-8' )
convert utf-8 encoded string to unicode .