look at that:
import urllib
print urllib.urlencode(dict(bla='Ã'))
the output is
bla=%C3%BC
what I want is simple, I want the output in ascii instead of utf-8, so I need the output:
bla=%C3
if I try:
urllib.urlencode(dict(bla='Ã'.decode('iso-8859-1')))
doesn't work (all my python files are utf-8 encoded):
'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
In production, the input comes unicoded.