Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Use UTF-8 encoding when saving emails#54

Open
tbl0605 wants to merge 1 commit into
Nilhcem:masterfrom
tbl0605:master
Open

Use UTF-8 encoding when saving emails#54
tbl0605 wants to merge 1 commit into
Nilhcem:masterfrom
tbl0605:master

Conversation

@tbl0605

@tbl0605 tbl0605 commented Feb 7, 2017

Copy link
Copy Markdown

Hi,
I recently used FakeSMTP to look at my generated emails.
All my emails looked wrong (in Outlook), because all utf-8 characters seemed to be wrongly encoded.

Problem (and solution) is simple: FakeSMTP reads an utf-8 InputStream in method MailSaver #convertStreamToString(InputStream is), so it should also save the stream as an utf-8 file in method MailSaver#saveEmailToFile(String mailContent).

Thierry.

Signed-off-by: Thierry BLIND <tbl0605@gmail.com>
@SpyroTEQ

Copy link
Copy Markdown

This UTF-8 encoding issue on save is indeed a "problematic" issue (okay, not a "bouh, blocker, I cannot work!" issue, but still major) because the results you get in your local tests with FakeSMTP do not match the resulst on production. @Nilhcem Can you review, approve, merge & deploy this (or decline for whatever reason)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants