email link and foreign accent

Peter Hansen peter at engcorp.com
Sat Jul 2 14:04:29 EDT 2005


Vittorio wrote:
> print"""<a href="mailto:%s">""" %(campovalore.encode('iso-8859-1'))
> print campovalore.encode('iso-8859-1')
> print """</a>"""
> 
> campovalore is an email address  with special (italian) characters.
> [snip]
> Any suggestion is welcome,

It might help if you showed us the output of "repr(x)" where x is the 
output of the campovalore.encode('iso-8859-1') part above.

-Peter



More information about the Python-list mailing list