Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Converts a URL containing unicode characters to an IRI.

Args:
        url: Unicode string containing a URL with unicode characters.

Returns:
        A properly encoded IRI (see RFC 3987).

        def unicode_to_iri(url):
	"""Converts a URL containing unicode characters to an IRI.

	Args:
		url: Unicode string containing a URL with unicode characters.

	Returns:
		A properly encoded IRI (see RFC 3987).
	"""
	scheme, rest = unicode(url).encode('utf-8').split(':', 1)
	return '%s:%s' % (scheme, urllib.quote(rest))
        


src/a/m/Amplifriend-HEAD/hub/SubscribeHandler.py   Amplifriend(Download)
			error_message = 'Invalid parameter: hub.callback'
		else:
			callback = utils.unicode_to_iri(callback)
 
		if not topic or not utils.is_valid_url(topic):
			error_message = 'Invalid parameter: hub.topic'
		else:
			topic = utils.unicode_to_iri(topic)