Re: email link and foreign accent
Vittorio <[EMAIL PROTECTED]> wrote in news:Xns96896D46D9DCCSoToSpeak@ 195.110.128.18: > Thanks Peter for replying. > This is an example of the output of repr(x) as you requested: > > '[EMAIL PROTECTED]' > > 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 adjournment: link opened from Firefox->Thunderbird:it works link opened from IE6->Thunderbird:it works -- http://mail.python.org/mailman/listinfo/python-list
Re: email link and foreign accent
Peter Hansen <[EMAIL PROTECTED]> wrote in news:6f-dnTSTQazBSlvfRVn- [EMAIL PROTECTED]: > Vittorio wrote: >> print"""mailto:%s";>""" %(campovalore.encode('iso-8859-1')) >> print campovalore.encode('iso-8859-1') >> print "" >> > 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: '[EMAIL PROTECTED]' 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 -- http://mail.python.org/mailman/listinfo/python-list
Re: email link and foreign accent
Vittorio wrote: > print"""mailto:%s";>""" %(campovalore.encode('iso-8859-1')) > print campovalore.encode('iso-8859-1') > print "" > > 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 -- http://mail.python.org/mailman/listinfo/python-list
email link and foreign accent
Hi, I have one problem ( I am a python beginner) in a cgi: print"""mailto:%s";>""" %(campovalore.encode('iso-8859-1')) print campovalore.encode('iso-8859-1') print "" campovalore is an email address with special (italian) characters. >From IE6 everything is fine and the link launches my predefined (in Windows) email client with the correct string in the mailto field. But from Firefox and the same email client I have an incorrect mailto field every time there is a special character in the string. Any suggestion is welcome, vittorio -- http://mail.python.org/mailman/listinfo/python-list