<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sendmail japanese character in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-japanese-character/m-p/4188446#M323364</link>
    <description>You must insert one blank line to separate the headers from the message body. &lt;BR /&gt;&lt;BR /&gt;The MIME-Version header is required: otherwise the Content-Type may be ignored.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;echo "MIME-Version: 1.0" &amp;gt; msg&lt;BR /&gt;echo "Content-Type: text/plain; charset=UTF-8" &amp;gt;&amp;gt; msg&lt;BR /&gt;echo "" &amp;gt;&amp;gt; msg&lt;BR /&gt;cat content.msg &amp;gt;&amp;gt; msg&lt;BR /&gt;sendmail malayboy@malayboy.com &amp;lt; msg&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Tue, 29 Apr 2008 08:13:47 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2008-04-29T08:13:47Z</dc:date>
    <item>
      <title>sendmail japanese character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-japanese-character/m-p/4188443#M323361</link>
      <description>Hi,&lt;BR /&gt;  Appreciate if anybody can show me direction on how to troubleshoot this issue :&lt;BR /&gt;&lt;BR /&gt;I have a HPUX 11.23 which have a Oracle 10G Release 2 database. In the database we already set the language as UTF8.&lt;BR /&gt;&lt;BR /&gt;We have a user in Japan which insert the japanese character to the db.&lt;BR /&gt;&lt;BR /&gt;When we do a normal select statement from database we could see the japanese character ( i think )&lt;BR /&gt;&lt;BR /&gt;Problem :&lt;BR /&gt;But we have a sendmail script which read the database and sent email to customer. The problem is the email is rubbish character.&lt;BR /&gt;&lt;BR /&gt;Any idea where can i start to troubleshoot .. I'm pretty confuse now.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Tue, 29 Apr 2008 07:06:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-japanese-character/m-p/4188443#M323361</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2008-04-29T07:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail japanese character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-japanese-character/m-p/4188444#M323362</link>
      <description>The script that sends the email should either add the proper MIME headers to identify the character set, or the script should use some MUA that can handle this automatically instead of accessing sendmail directly.&lt;BR /&gt;&lt;BR /&gt;The correct MIME headers would seem to be:&lt;BR /&gt;MIME-Version: 1.0&lt;BR /&gt;Content-Type: text/plain; charset=utf-8&lt;BR /&gt;&lt;BR /&gt;There are several ways to encode Japanese characters; Unicode UTF8 is only one of them. When the Japanese user receives the email, his/her mail program might try to display the characters using some older encoding if the email does not specify the message is using UTF8. This of course produces rubbish characters (mojibake).&lt;BR /&gt;&lt;BR /&gt;According to Wikipedia, the Japanese mail programs would be likely to assume JIS encoding if the encoding is not explicitly specified:&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Japanese_language_and_computers" target="_blank"&gt;http://en.wikipedia.org/wiki/Japanese_language_and_computers&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Could you show us how your sendmail script works? If it invokes sendmail directly, it might be easy to make it add those header lines.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 29 Apr 2008 07:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-japanese-character/m-p/4188444#M323362</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-04-29T07:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail japanese character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-japanese-character/m-p/4188445#M323363</link>
      <description>hi MK,&lt;BR /&gt; Here are part of the script :&lt;BR /&gt;&lt;BR /&gt;------------------------------------------&lt;BR /&gt;echo "Content-Type: text/plain; charset=UTF-8"&lt;BR /&gt;# end &amp;gt; msg&lt;BR /&gt;cat content.msg &amp;gt;&amp;gt; msg&lt;BR /&gt;&lt;BR /&gt;sendmail malayboy@malayboy.com &amp;lt; msg&lt;BR /&gt;&lt;BR /&gt;-----------------------------------------&lt;BR /&gt;&lt;BR /&gt;content.msg content are pull from the database. In db the character are correctly in japanese.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We have try to put characterset on top of the email but still comeout rubbish.&lt;BR /&gt;&lt;BR /&gt;thanks tho , MK .. anymore cool idea ??</description>
      <pubDate>Tue, 29 Apr 2008 07:46:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-japanese-character/m-p/4188445#M323363</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2008-04-29T07:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail japanese character</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-japanese-character/m-p/4188446#M323364</link>
      <description>You must insert one blank line to separate the headers from the message body. &lt;BR /&gt;&lt;BR /&gt;The MIME-Version header is required: otherwise the Content-Type may be ignored.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;echo "MIME-Version: 1.0" &amp;gt; msg&lt;BR /&gt;echo "Content-Type: text/plain; charset=UTF-8" &amp;gt;&amp;gt; msg&lt;BR /&gt;echo "" &amp;gt;&amp;gt; msg&lt;BR /&gt;cat content.msg &amp;gt;&amp;gt; msg&lt;BR /&gt;sendmail malayboy@malayboy.com &amp;lt; msg&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 29 Apr 2008 08:13:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-japanese-character/m-p/4188446#M323364</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-04-29T08:13:47Z</dc:date>
    </item>
  </channel>
</rss>

