Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1177

ISO-8859-1 characters in subject field are not properly rendered

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 1.2.1.GA
    • Fix Version/s: 1.3.0.ALPHA
    • Component/s: Mail
    • Labels:
      None

      Description

      The MailComponent.encode() method doesn't return the right string and convert non UTF8 characters into their code.

      For instance <m:subject>Café</m:subject> is rendered as "Café"

      To reproduce it, use the mail example, replace examples\mail\view\simple.xhtml file by

      <?xml version="1.0" encoding="ISO-8859-1" ?>
      <m:message xmlns="http://www.w3.org/1999/xhtml"
      xmlns:m="http://jboss.com/products/seam/mail"
      xmlns:h="http://java.sun.com/jsf/html"
      charset="ISO-8859-1">

      <m:from name="Peter" address="peter@example.com" />
      <m:to name="#

      {person.firstname} #{person.lastname}">#{person.address}</m:to>
      <m:subject>Try out Seam with a cup of Café!</m:subject>
      <m:body>
      <p><h:outputText value="Dear #{person.firstname}

      " />,</p>
      <p>You can try out Seam by visiting <a href="http://labs.jboss.com/jbossseam">http://labs.jboss.com/jbossseam</a>.</p>
      <p>Regards</p>
      <p>Peter</p>
      </m:body>
      </m:message>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pmuir Pete Muir
                Reporter:
                rlhr Richard Leherpeur
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: