<div dir="ltr"><div class="gmail_quote">2011/1/17 Ori Idan <span dir="ltr"><<a href="mailto:ori@helicontech.co.il">ori@helicontech.co.il</a>></span><br><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>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></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>