[GH-ISSUE #413] Title and mail body will both use encoding UTF-8 or UTF8 with BOM.? #267

Closed
opened 2026-03-15 13:32:40 +03:00 by kerem · 5 comments
Owner

Originally created by @tqangxl on GitHub (Dec 20, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/413

mail Title and body will both default convert to use encoding UTF8 with BOM.?
nice work~!

When the title and body of the email are in Chinese, they appear as gibberish.
Subject =?us-ascii?Q?Oracle=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F?=

Is it in UTF-8 format? Or GBK?
image

Could there be an option to view attachments next to the download button, allowing direct viewing in the browser without having to download the clicked attachment?

Originally created by @tqangxl on GitHub (Dec 20, 2024). Original GitHub issue: https://github.com/axllent/mailpit/issues/413 mail Title and body will both default convert to use encoding UTF8 with BOM.? nice work~! When the title and body of the email are in Chinese, they appear as gibberish. Subject =?**us-ascii**?Q?Oracle=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F?= Is it in UTF-8 format? Or GBK? ![image](https://github.com/user-attachments/assets/dd9ad184-8562-4ea0-9306-71c27bdec2e3) Could there be an option to view attachments next to the download button, allowing direct viewing in the browser without having to download the clicked attachment?
kerem 2026-03-15 13:32:40 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@axllent commented on GitHub (Dec 20, 2024):

Hi @tqangxl. I believe you already asked the same question in #389, and I answered you here but you did not respond. Did I not understand your question, or did you not understand my answers?

<!-- gh-comment-id:2556659639 --> @axllent commented on GitHub (Dec 20, 2024): Hi @tqangxl. I believe you already asked the same question in #389, and I answered [you here](https://github.com/axllent/mailpit/issues/389#issuecomment-2482310713) but you did not respond. Did I not understand your question, or did you not understand my answers?
Author
Owner

@tqangxl commented on GitHub (Dec 24, 2024):

Is all your content encoded in UTF-8 by default, including email subjects, email bodies, and attachments? Will they all be displayed in UTF-8? Thank you. Also, could you add a feature to view the content attachments?

<!-- gh-comment-id:2560738632 --> @tqangxl commented on GitHub (Dec 24, 2024): Is all your content encoded in UTF-8 by default, including email subjects, email bodies, and attachments? Will they all be displayed in UTF-8? Thank you. Also, could you add a feature to view the content attachments?
Author
Owner

@axllent commented on GitHub (Dec 27, 2024):

The data (HTML) is transmitted using UTF-8, however I believe your problem is that your emails are not encoded correctly (you should not be using ASCII). Can you please paste here the subject you are tying to encode? I do not mean the encoded version in the email (?us-ascii?Q?Oracle=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F?=), but the actual content of the subject (eg: 这是主题)?

As for the attachments:

Your browser can only open the file formats it supports - if the browser does not support the format (eg: .man) then it will try download the file instead. Mailpit does not convert attachment formats into something your browser can understand (there are literally thousands of file formats).

<!-- gh-comment-id:2563627160 --> @axllent commented on GitHub (Dec 27, 2024): The data (HTML) is transmitted using UTF-8, however I believe your problem is that your emails are not encoded correctly (you should not be using ASCII). Can you please paste here the subject you are tying to encode? I do not mean the encoded version in the email (`?us-ascii?Q?Oracle=3F=3F=3F=3F=3F=3F=3F=3F=3F=3F?=`), but the actual content of the subject (eg: `这是主题`)? As for the attachments: > Your browser can only open the file formats it supports - if the browser does not support the format (eg: .man) then it will try download the file instead. Mailpit does not convert attachment formats into something your browser can understand (there are literally thousands of file formats).
Author
Owner

@github-actions[bot] commented on GitHub (Jan 4, 2025):

This issue has been marked as stale because it has been open for 7 days with no activity.

<!-- gh-comment-id:2570000117 --> @github-actions[bot] commented on GitHub (Jan 4, 2025): This issue has been marked as stale because it has been open for 7 days with no activity.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 7, 2025):

This issue was closed because there has been no activity since being marked as stale.

<!-- gh-comment-id:2574246780 --> @github-actions[bot] commented on GitHub (Jan 7, 2025): This issue was closed because there has been no activity since being marked as stale.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mailpit#267
No description provided.