Re: Mail subject encoding problem
| From: | Per Jessen | Date: | Fri, 30 Jan 2009 13:24:46 +0000 |
| Subject: | Re: Mail subject encoding problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287412@lists.php.net to get a copy of this message | ||
Thodoris wrote:
> I am having a FreeBSD web server for development that is working like
> a charm when sending mail using something like this:
>
> // Define the e-mail content
> $email = "foo@foo,com";
> $subject = "H εργασία: (id: 1868) έκλεισε χωρίς σχόλια.";
> $message = "Αυτό είναι ένα τέστ. Αυτό είναι ένα τέστ.
> Αυτό είναι ένα
> τέστ."; // $subject =
> mb_encode_mimeheader($subject,'iso-8859-1','B');
>
> The language in both subject and mail body is Greek. But when I am
> uploading this to a Linux CentOS 5.2 server this mail is being sent
> but the subject is rubbish.
> All encodings are in UTF-8 (the php file, the encoding of the mail
> client etc) so to solve this I have added the mb_encode_mimeheader
> line.
But for some reason you've specified ISO-8859-1 instead of UTF-8?
/Per Jessen, Zürich