Posted by Tim Roberts on 10/23/70 11:34
kamlai@gmail.com 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?
You allow it to encode into the %xx format. URLs are not supposed to
contain any characters outside of 20 - 7F.
>I've tried urlencode($filename) and urldecode($filename) but cannot fix
>the problem...
What operating system are you using? Are you sure the operating system
allows utf-8 filenames?
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
[Back to original message]
|