look at that:
import urllib print urllib.urlencode(dict(bla=\'Ã\'))
the output is
bla=%C3%BC
what I want
If your input is actually UTF-8 and you want iso-8859-1 as output (which is not ASCII) what you need is:
'ñ'.decode('utf-8').encode('iso-8859-1')