[
https://issues.apache.org/jira/browse/EMAIL-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650486#action_12650486
]
Edvin Syse commented on EMAIL-79:
---------------------------------
Please se attached MailTest.java and message.eml and the resulting email when
recieved. You need to put commons-email-1.1.jar and mail-1.4.jar on the
classpath to run the test. As you see, the subject is encoded correctly, but
the body is qp-encoded with latin-1 charset instead of UTF-8. I ran the program
with -Dfile.encoding="UTF-8". It's easy to spot, since the each qp-encoded
letter in the body only consist of one encoded one-byte sequence instead of two.
> SimpleEmail#setMsg() with UTF-8 content honors correct charset in header, but
> doesn't encode the content correctly
> ------------------------------------------------------------------------------------------------------------------
>
> Key: EMAIL-79
> URL: https://issues.apache.org/jira/browse/EMAIL-79
> Project: Commons Email
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: Windows Vista, JDK 1.6.0_06
> Reporter: Edvin Syse
> Priority: Minor
> Attachments: EmailTest.zip
>
>
> When I create a new SimpleEmail and use setMsg(some-utf8-text), the
> Content-Type header of the generated email correctly changes to UTF-8, but
> the content is not encoded correctly.
> Adding setCharset("UTF-8") solves the problem, but that shouldn't be needed,
> as the change of Content-Type header indicates.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.