Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-1083

use UTF-8 encoding for emails

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 4.0, Trunk
    • Release Branch 4.0, Trunk
    • content
    • None

    Description

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jleroux Jacques Le Roux
            thomash Thomas Herzog
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment