email link and foreign accent

Vittorio renmybiru at libero.it
Mon Jul 4 04:48:55 EDT 2005


Peter Hansen <peter at engcorp.com> wrote in news:6f-dnTSTQazBSlvfRVn-
jQ at powergate.ca:

> Vittorio wrote:
>> print"""<a href="mailto:%s">""" %(campovalore.encode('iso-8859-1'))
>> print campovalore.encode('iso-8859-1')
>> print """</a>"""
>> 
> 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.

Thanks Peter for replying.
This is an example of the output of repr(x) as you requested:

'carr\xe0 at pluto.it'

Results:
link opened from IE6->Outlook: it works
link opened from IE6->Pocomail: it works
link opened from Firefox->Outlook: characters with accent fail
link opened from Firefox->Pocomail: characters with accent fail

It looks like having to do more with Firefox than with Python itself but 
maybe someone can help anyway?

vittorio



More information about the Python-list mailing list