Sending special characters in attached file UNIX
<p>I have a file which is having Japanese character, when i send the mail in shell script the attached mail is having ??? instead of Japanese characters. Any way to fix this?</p>

<p>cat JPData.csv</p>

<pre><code>"7","銈炽兗銉撱兗 11 銉°兂銈?銉愩偣銈便儍銉堛儨銉笺儷銈枫儱銉笺偤"
</code></pre>

<p>Mail script:</p>

<pre><code>mail_msg() {   export SUBJECT="Details file""   export
    ATTACH="JPData.csv" (   echo "From: $MAILFROM"
    echo "To: $MAILTO"
    echo "CC: $MAILCC"
    echo "Subject: $SUBJECT"
    echo "MIME-Version: 1.0"
    echo 'Content-Type: multipart/mixed; boundary="-q1w2e3r4t5"'
    echo
    echo '---q1w2e3r4t5'
    echo 'Content-Type: text/plain; charset=utf-8'
    echo 'Content-Transfer-Encoding: 8bit'
    echo
    echo "Please find the attachement"
    echo '---q1w2e3r4t5'
    echo 'Content-Type: text/html; charset=utf-8; name=JPData.csv'
    echo 'Content-Transfer-Encoding: base64'
    echo 'Content-Disposition: attachment; filename=JPData.csv'
    echo
    base64 &lt;"$ATTACH"
    echo
    echo '---q1w2e3r4t5--' ) | /usr/sbin/sendmail $MAILTO
}
</code></pre>