def uslugify_encoded(text, sep):
 if (text is None):
  return u''
 tag_id = RE_TAGS.sub(u'', unicodedata.normalize(u'NFKD', text)).lower()
 tag_id = RE_WORD.sub(u'', tag_id).replace(u' ', sep)
 return quote(tag_id.encode(u'utf-8'))

def uslugify_encoded ( text , sep ) : if ( text is None ) : return u'' tag_id = RE_TAGS . sub ( u'' , unicodedata . normalize ( u'NFKD' , text ) ) . lower ( ) tag_id = RE_WORD . sub ( u'' , tag_id ) . replace ( u' ' , sep ) return quote ( tag_id . encode ( u'utf-8' ) )
custom slugify .