commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siegfried Goeschl (JIRA)" <j...@apache.org>
Subject [jira] Commented: (EMAIL-79) SimpleEmail#setMsg() with UTF-8 content honors correct charset in header, but doesn't encode the content correctly
Date Fri, 06 Feb 2009 18:31:59 GMT

    [ https://issues.apache.org/jira/browse/EMAIL-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671232#action_12671232
] 

Siegfried Goeschl commented on EMAIL-79:
----------------------------------------

I applied the patch but it is breaking a few tests

  testSendNoAttachments(org.apache.commons.mail.SendWithAttachmentsTest)
  testSendWAttachments(org.apache.commons.mail.SendWithAttachmentsTest)
  testSend(org.apache.commons.mail.HtmlEmailTest)
  testSend2(org.apache.commons.mail.HtmlEmailTest)
  testHtmlMailMimeLayout(org.apache.commons.mail.EmailLiveTest)
  testSend(org.apache.commons.mail.MultiPartEmailTest)

I try to commit my pending changes so that you can have a look at the problems

> 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
>            Assignee: Siegfried Goeschl
>            Priority: Minor
>         Attachments: EMAIL-79-patch.txt, 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.


Mime
View raw message