When sending with charset=windows-1255 it works.
The problem was that the headers where terminated with \r\n instead of \n
only.
As for the UTF-8 problem, I am not going to solve it now. Windows-1255 is
enough for the customer.

Again spending hours of work because of Microsoft bugs.

-- 
Ori Idan


On Mon, Jan 17, 2011 at 3:48 PM, David Ronkin <dron...@gmail.com> wrote:

> Try to use charset=iso-8859-8 instead (it's more correct for hebrew i
> think).
> David
>
>
> 2011/1/17 shimi <linux...@shimi.net>
>
>> 2011/1/17 Ori Idan <o...@helicontech.co.il>
>>
>>> I am sending HTML mail in Hebrew from a server running Ubuntu 10.4 and
>>> PHP 5.3.2
>>> When sending the mail as UTF-8 with the header set to Content-type:
>>> text/html; charset=UTF-8 the mails are read as gibrish.
>>> When converting to windows-1255 (and changing the Content-type header)
>>> the hebrew received Ok but it is received as plain text (seeing HTML tags)
>>> Does anyone have any idea how to solve it? (preferably without changing
>>> setup in outlook)
>>>
>>> Everything works fine when sending to gmail.
>>>
>>>
>>>
>> In the HTML (between <head> and </head>), try having also a:
>>
>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>>
>> tag.
>>
>> If that didn't help... try sending the message as a multipart MIME
>> message, one part with text (text/plain) (strip_tags() to kill the HTML),
>> and the other as proper HTML.
>>
>> I think It should do the trick...
>>
>> Of course, verify that what you're sending, is, indeed, utf-8. i.e. if
>> it's hard coded in some file, that this file is saved encoded as utf-8.
>>
>> HTH,
>>
>> -- Shimi
>>
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il@cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>>
>
>
> --
> בברכה,
> דוד רונקין
>
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to