Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Japanese file names are garbled.

#2996

Hi,

I attach a file with a Japanese file name and send it with Mailmate.
Then, when I check the incoming mail in Gmail (browser), the file name is garbled.
What should I do?

Regards,

Reported by rontaro · February 4th, 2022 @ 08:54 AM

State: fixreleased
Milestone: none
Assigned to: benny benny

Activity

  1. benny
    benny

    Could you provide me with an example filename which triggers this issue?

    February 17th, 2022 @ 10:06 PM

  2. rontaro
    rontaro

    Hi,

    All Japanese file names attached to e-mails will be garbled.

    For example, let's attach a file with the following Japanese name
    CIOMS_02_1_修正済み.pdf

    On the receiving side, the above file name will be displayed as follows.
    CIOMS_02_1_%e4%bf%ae%e6%ad%a3%e6%b8%88%e3%81%bf.pdf

    Regards,

    February 18th, 2022 @ 01:41 AM

  3. benny
    benny
    • State changed from new to reproduced

    Ok, first of all, it does work if I send it to Apple Mail. As far as I can see MailMate doesn't do anything strictly wrong.

    This is one of those problems where doing it the “right way” doesn't always work in practice. I tried sending an email using Gmail to see how they do encoding -- and yes, they do it the incorrect way.

    After a bit of googling then I think maybe the approach described in this blog post is the way to go to make it work despite buggy email clients. I can see that this is also what Apple Mail does.

    February 23rd, 2022 @ 10:35 AM

  4. benny
    benny
    • State changed from reproduced to fixcommitted

    Turns out Gmail did mostly handle things the right way, but MailMate had to behave exactly like Apple Mail to make it work. I'm now generating an additional filename parameter which is kind of obsolete/redundant, but it'll likely have better interoperability with other email clients -- at least as well as Apple Mail.

    (This fix will be in r5873+ when available.)

    February 23rd, 2022 @ 11:10 AM

  5. rontaro
    rontaro

    We have confirmed that this issue has been resolved in r5873.
    Thank you for the fix.
    Best regards,

    March 1st, 2022 @ 11:47 PM

  6. benny
    benny
    • State changed from fixcommitted to fixreleased

    December 25th, 2024 @ 04:11 PM

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.