You are here: Re: UTF-8 Email with links « PHP Programming Language « IT news, forums, messages
Re: UTF-8 Email with links

Posted by John Dunlop on 12/11/05 02:11

kamlai wrote:

> I have an email in utf-8 encoding. In the content of the email, I need
> to send a link in which the filename is in utf-8 string...just like
> this..
>
> $content = "<a href=\"http://xxxxxx/".$filename."\"">Link to file</a>";
>
> however, the link can not be correctly passsed and it automatically
> encodes it into %xx format. How to solve the problem?

Maybe they do get across as-is, just like the same characters outwith
URLs would, but your MUA percent-encodes raw non-US-ASCIIs in anything it
considers a URL?

> I've tried urlencode($filename) and urldecode($filename) but cannot fix
> the problem...

Have you thought of percent-encoding them yourself *before* sending the
e-mail? or, sorry, is that what you're saying you've tried?

--
Jock

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация