|
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]
|