Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-517

templateForm doesn't work properly with cyrillic content

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 3.0 RC1
    • 2.1 Final
    • templating
    • None
    • winXP, jdk1.5, tomcat5.5.9, firerox1.0.6

    Description

      I tried to send mail with cyrillic content and didn't got it properly.
      The solution is simple (if we use UTF-8)

      the method :
      public void sendMail() throws MessagingException {

      needs following changes:

      message.setSubject(subject, "UTF-8");
      instead of:
      message.setSubject(subject);

      and
      message.setText(body, "UTF-8");
      instead of:
      message.setContent(body, "text/plain");

      This worked for me, but i'm sure there are other solutions about this problem...

      btw. MailHandler is nice for now , wouldn't it be nicer if it has more input parameters i.e. header content ???

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              kraft Boris Kraft
              fleka Stojan Peshov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD