You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2007/08/16 02:19:31 UTC

[jira] Closed: (OFBIZ-1083) use UTF-8 encoding for emails

     [ https://issues.apache.org/jira/browse/OFBIZ-1083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-1083.
----------------------------------

    Resolution: Fixed
      Assignee: Jacques Le Roux  (was: Jacopo Cappellato)

Thanks Thomas and Christian,

The patch is in trunk rev. 566428, release4.0 rev. 566429

> use UTF-8 encoding for emails
> -----------------------------
>
>                 Key: OFBIZ-1083
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1083
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: content
>    Affects Versions: SVN trunk, Release Branch 4.0
>            Reporter: Thomas Herzog
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk, Release Branch 4.0
>
>         Attachments: EmailServices.java.diff
>
>
> Sent Emails are currently encoded with us-ascii charset. This means the € sign is displayed as ?, other special characters are not displayed.
> This patch sets the encoding to UTF-8 and solves above problems.
> The StringDataSource class, which is embedded into EmailServices class, is no longer referenced and can be removed.
> The UTF-8 email characterset is hardcoded twice. A possible improvement is to use java.nio.charset.Charset.defaultCharset().toString(), which returns UTF-8 in my case. Additionally you could overwrite the default settings with a mail.charset property in the "general.properties" file.
> Thomas

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.