Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26758

Charset is ignored (and incorrect) in MimeMessageBuilder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • mailer-plugin
    • None
    • Jenkins 1.580.1 / 1.598
      mailer-plugin 1.14
      workflow-plugin 1.2

      Symptom : using the MailStep from workflow-plugin, the generated email always has the "charset=UTF-8" in the Content-Type part header, regardless of the charset parameter, but the non-ascii characters are not properly escaped.
      e.g. the word "Synthèse" in the body is escaped as "Synth=E8se" instead of "Synth=C3=A8se".

      Looking at the source code for MimeMessageBuilder, the charset parameter is indeed not used for the content, but only for addresses.

            Unassigned Unassigned
            jblanchard Jean Blanchard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: