[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1177) ISO-8859-1 characters in subject field are not properly rendered

Richard Leherpeur (JIRA) jira-events at lists.jboss.org
Thu Apr 12 14:48:58 EDT 2007

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

                 Key: JBSEAM-1177
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1177
             Project: JBoss Seam
          Issue Type: Bug
          Components: Mail
    Affects Versions: 1.2.1.GA
            Reporter: Richard Leherpeur
         Assigned To: Pete Muir

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&#233;" 

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"
          <m:from name="Peter" address="peter at 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>
              <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>


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list