<div dir="ltr">When sending with charset=windows-1255 it works.<div>The problem was that the headers where terminated with \r\n instead of \n only.</div><div>As for the UTF-8 problem, I am not going to solve it now. Windows-1255 is enough for the customer.</div>
<div><br></div><div>Again spending hours of work because of Microsoft bugs.</div><div><br></div><div>-- </div><div>Ori Idan</div><div><br><br><div class="gmail_quote">On Mon, Jan 17, 2011 at 3:48 PM, David Ronkin <span dir="ltr"><<a href="mailto:dronkin@gmail.com">dronkin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex"><div dir="rtl"><div dir="ltr">Try to use charset=iso-8859-8 instead (it's more correct for hebrew i think).<br>
David<br><br></div><div><br><div class="gmail_quote"><div dir="ltr">2011/1/17 shimi <span dir="ltr"><<a href="mailto:linux-il@shimi.net" target="_blank">linux-il@shimi.net</a>></span></div>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div class="h5"><div dir="ltr"><div class="gmail_quote"><div>2011/1/17 Ori Idan <span dir="ltr"><<a href="mailto:ori@helicontech.co.il" target="_blank">ori@helicontech.co.il</a>></span><br>
</div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div dir="ltr">I am sending HTML mail in Hebrew from a server running Ubuntu 10.4 and PHP 5.3.2<div><div></div><div><div>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.</div>
<div>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)</div><div>Does anyone have any idea how to solve it? (preferably without changing setup in outlook)</div>
<div><br></div><div>Everything works fine when sending to gmail.</div><div><br><br></div></div></div></div></blockquote><div><br>In the HTML (between <head> and </head>), try having also a: <br><br><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><br>
<br>tag.<br><br>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.<br><br>I think It should do the trick...<br>
<br>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.<br><br>HTH,<br><br>-- Shimi<br></div></div><br></div>
<br></div></div><div class="im">_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br>בברכה,<br>דוד רונקין<br>
</div></div>
</blockquote></div><br></div></div>