# Can't use urllib.quote() on the whole thing or it'll
# catch "?" and "=" where it shouldn't.
# XXX Also we need to pass urllib.quote() things explicitly
# encoded as utf8 or else we get a UnicodeEncodeError.
link_name = '{name}?form={form}'.format(
name=urllib.quote(obj.name.lower().encode('utf8')),
# Can't use urllib.quote() on the whole thing or it'll
# catch "?" and "=" where it shouldn't.
# XXX Also we need to pass urllib.quote() things explicitly
# encoded as utf8 or else we get a UnicodeEncodeError.
link_name = '{name}?form={form}'.format(
name=urllib.quote(obj.name.lower().encode('utf8')),