#486 ✓fixreleased
Sungjoo Ha

Support charset "ks_c_5601-1987"

Reported by Sungjoo Ha | November 13th, 2013 @ 08:15 PM

Many Korean emails are sent with charset="ks_c_5601-1987".
I don't think this is currently supported by MailMate and MailMate will display garbage instead of properly encoded Korean.
This charset could be interpreted as EUC-KR or CP949. (Refer to http://lists.kde.org/?l=kde-i18n-doc&m=100396886120761&w=2)
Please fix this.

Comments and changes to this ticket

  • benny

    benny November 13th, 2013 @ 08:21 PM

    I would love to do that. Could you send me an example message?

    I use the iconv library to do conversions. Apparently it should support all of the above:

    iconv --list | egrep -i 'ks_c_5601-1987|EUC-KR|CP949'
    ISO-IR-149 KOREAN KSC_5601 KS_C_5601-1987 KS_C_5601-1989 CSKSC56011987
    EUC-KR EUCKR CSEUCKR
    CP949 UHC
    

    It'll be easier to debug with an example. I've also seen issues with some Japanese messages (which required workarounds).

  • Sungjoo Ha

    Sungjoo Ha November 13th, 2013 @ 08:42 PM

    I'm attaching a part of a raw message. Also, refer to the attachment file current.png and correct.png. If you look carefully, you'll notice that the English characters are shown correctly, while the Korean characters are shown incorrectly.

    Subject: =?ks_c_5601-1987?B?yKS9wyBSQU0gtbXC+Mffs6q/5D8=?=
    Date: Mon, 17 Apr 2006 18:11:37 +0900
    Message-ID: <001d01c661fe$ee4080f0$6501a8c0@clare>
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_001E_01C6624A.5E2828F0"
    X-Mailer: Microsoft Office Outlook 11
    Thread-Index: AcZh/u3c6Rx/z+HCS/qEI0rmxG33qQ==
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
    
    This is a multi-part message in MIME format.
    
    ------=_NextPart_000_001E_01C6624A.5E2828F0
    Content-Type: text/plain;
        charset="ks_c_5601-1987"
    Content-Transfer-Encoding: base64
    
    wfazrSDB1r+hIFNEU8P4v6G8rSBSQU0gwda5rsfPvMy02bDtIMfPtMK1pSwNCg0KwaawoSDFw7no
    ILHiu+e60LKyIL+stvTAuyC53sH2ILj4x9+z17/kLg0KDQogDQoNCsikvcMgsPy4rsDavce/oSBS
    QU0gtbXC+MfftMLB9iC+y7DtIMDWwLi46SC/rLb0wda8vL/kLg0KDQqxzcHfx7DAzrWlILrQvcfH
    38C7se4gsMbBpLXHvK1eXg0KDQo=
    
    ------=_NextPart_000_001E_01C6624A.5E2828F0
    Content-Type: text/html;
        charset="ks_c_5601-1987"
    Content-Transfer-Encoding: quoted-printable
    
    <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
    xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
    xmlns=3D"http://www.w3.org/TR/REC-html40">
    
    <head>
    <meta http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Dks_c_5601-1987">
    <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
    <style>
    <!--
     /* Font Definitions */
     @font-face
        {font-family:=B9=D9=C5=C1;
        panose-1:2 3 6 0 0 1 1 1 1 1;}
    @font-face
        {font-family:=B1=BC=B8=B2;
        panose-1:2 11 6 0 0 1 1 1 1 1;}
    @font-face
        {font-family:"\@=B1=BC=B8=B2";
        panose-1:2 11 6 0 0 1 1 1 1 1;}
    @font-face
        {font-family:"\@=B9=D9=C5=C1";
        panose-1:2 3 6 0 0 1 1 1 1 1;}
     /* Style Definitions */
     p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        font-family:=B9=D9=C5=C1;}
    a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
    span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:=B1=BC=B8=B2;
        color:windowtext;}
     /* Page Definitions */
     @page Section1
        {size:595.3pt 841.9pt;
        margin:99.25pt 3.0cm 3.0cm 3.0cm;
        layout-grid:18.0pt;}
    div.Section1
        {page:Section1;}
    -->
    </style>
    
    </head>
    
    <body lang=3DKO link=3Dblue vlink=3Dpurple>
    
    <div class=3DSection1 style=3D'layout-grid:18.0pt'>
    
    <p class=3DMsoNormal><font size=3D2 face=3D=B1=BC=B8=B2><span =
    style=3D'font-size:10.0pt;
    font-family:=B1=BC=B8=B2'>=C1=F6=B3=AD =C1=D6=BF=A1 <span =
    lang=3DEN-US>SDS</span>=C3=F8=BF=A1=BC=AD <span lang=3DEN-US>RAM =
    </span>=C1=D6=B9=AE=C7=CF=BC=CC=B4=D9=B0=ED
    =C7=CF=B4=C2=B5=A5<span =
    lang=3DEN-US>,<o:p></o:p></span></span></font></p>
    
    <p class=3DMsoNormal><font size=3D2 face=3D=B1=BC=B8=B2><span =
    style=3D'font-size:10.0pt;
    font-family:=B1=BC=B8=B2'>=C1=A6=B0=A1 =C5=C3=B9=E8 =
    =B1=E2=BB=E7=BA=D0=B2=B2 =BF=AC=B6=F4=C0=BB =B9=DE=C1=F6 =
    =B8=F8=C7=DF=B3=D7=BF=E4<span =
    lang=3DEN-US>.<o:p></o:p></span></span></font></p>
    
    <p class=3DMsoNormal><font size=3D2 face=3D=B1=BC=B8=B2><span =
    lang=3DEN-US style=3D'font-size:10.0pt;
    font-family:=B1=BC=B8=B2'><o:p>&nbsp;</o:p></span></font></p>
    
    <p class=3DMsoNormal><font size=3D2 face=3D=B1=BC=B8=B2><span =
    style=3D'font-size:10.0pt;
    font-family:=B1=BC=B8=B2'>=C8=A4=BD=C3 =B0=FC=B8=AE=C0=DA=BD=C7=BF=A1 =
    <span lang=3DEN-US>RAM </span>=B5=B5=C2=F8=C7=DF=B4=C2=C1=F6 =
    =BE=CB=B0=ED =C0=D6=C0=B8=B8=E9 =BF=AC=B6=F4=C1=D6=BC=BC=BF=E4<span
    lang=3DEN-US>.<o:p></o:p></span></span></font></p>
    
    <p class=3DMsoNormal><font size=3D2 face=3D=B1=BC=B8=B2><span =
    style=3D'font-size:10.0pt;
    font-family:=B1=BC=B8=B2'>=B1=CD=C1=DF=C7=B0=C0=CE=B5=A5 =
    =BA=D0=BD=C7=C7=DF=C0=BB=B1=EE =B0=C6=C1=A4=B5=C7=BC=AD<span =
    lang=3DEN-US>^^<o:p></o:p></span></span></font></p>
    
    </div>
    
    </body>
    
    </html>
    
    ------=_NextPart_000_001E_01C6624A.5E2828F0--
    
  • Sungjoo Ha
  • benny

    benny November 14th, 2013 @ 10:40 PM

    • State changed from “new” to “fixcommitted”

    Fetch the latest test release by holding down ⌥ when clicking “Check Now” in the Software Update preferences pane. Then you should get r3842.

    Let me know whether or not it fixes the issue. I simply replace ks_c_5601-1987 with euc-kr to get around a limitation in the iconv library. It seems to work for me although I do not read Korean.

    Note: Messages already fetched by MailMate unfortunately needs to be re-fetched using “Message ▸ Reset...”.

  • Sungjoo Ha

    Sungjoo Ha November 15th, 2013 @ 08:08 AM

    I can see that the body of mail is properly converted, but the subject and the sender name isn't.
    Perhaps you could try to convert the subject and the sender name as well?

  • benny

    benny November 15th, 2013 @ 08:42 AM

    You missed the note I believe:

    Note: Messages already fetched by MailMate unfortunately needs to be re-fetched using “Message ▸ Reset...”.

    Did you try this?

  • Sungjoo Ha

    Sungjoo Ha November 15th, 2013 @ 03:21 PM

    You are right. I did miss the note and indeed it works now. Thank you.

  • benny

    benny December 17th, 2013 @ 06:42 PM

    • State changed from “fixcommitted” to “fixreleased”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Attachments

Pages