sending mail in UTF-8
<p>Wonder if anyone can help.</p>

<p>I have inherited a script that sends some content out in three languages (all on same content - repeated) however when recieved the content characters are broken for what i assume is a UTF-8 issue. </p>

<p>am i right all i need to do is change the charset part to utf-8, or does anything else need to change like the 7bit part ?</p>

<p>you can see where I inserted one UTF-8 reference (not tested yet)</p>

<p>there was something here <a href="http://bitprison.net/php_mail_utf-8_subject_and_message" rel="nofollow">http://bitprison.net/php_mail_utf-8_subject_and_message</a> which seems to reference base encoding, but I'm not sure if I need that here ?</p>

<p>Thanks</p>

<pre><code> // Contruct message body.
                $body = "";

                // Add message for non-mime clients.
                $body .= "This is a multi-part message in MIME format.\n";

                // Add text body.
                $body .= "\n--$boundary\nContent-Type: text/plain; charset=UTF-8; format=flowed\nContent-Transfer-Encoding: 7bit\n\n" . $textContent;

                // Add HTML body.
                $body .= "\n--$boundary\nContent-Type: text/html; charset=ISO-8859-1; format=flowed\nContent-Transfer-Encoding: 7bit\n\n" . $htmlContent;

                mail( $row["email"], "Update Your ArtsDB Listing", $body, $headers );
</code></pre>

<p>updated code, is this acceptable ? I looked on another post on here for an a example.</p>

<pre><code>$body .= "\n--$boundary\nContent-Type: text/plain; charset=UTF-8; format=flowed\nContent-Transfer-Encoding: 8bit\n\n" . $textContent;

            // Add HTML body.
            $body .= "\n--$boundary\nContent-Type: text/html; charset=UTF-8; format=flowed\nContent-Transfer-Encoding: 8bit\n\n" . $htmlContent;
</code></pre>
