Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-1738

Charset of E-Mail Subject Needs to be configurable

    XMLWordPrintableJSON

Details

    Description

      org.apache.roller.weblogger.util.MailUtil#sendMessage() method uses javax.mail.internet.MimeMessage#setSubject(String subject) method, in which the subject is encoded using the platform's default charset.

      http://java.sun.com/javaee/5/docs/api/javax/mail/internet/MimeMessage.html#setSubject(java.lang.String)

      In Japanese environment, many old e-mail clients supports only ISO-2022-JP, and not Shift_JIS (default charset in Windows) or EUC-JP (default charset in UNIX). Recent e-mail clients supports other charset including UTF-8.

      To improve i18n support in Roller, could you use MimeMessage#setSubject(String subject, String charset) with "UTF-8" charset? Making charset configuable using a new custom property is a plus.

      Attachments

        Activity

          People

            roller_unassigned Roller Unassigned
            satonaoki SATO Naoki
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: