Re: Mail subject encoding problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux