Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Special Characters

2009-06-22
2013-01-31
  • Hi all,

    i have some problems with ajax:displayTag, if the render page contains special characters (áéí...). I do not see the values correctly. My page is encoded with UTF-8.

    My application is with Struts 2, Ajaxtags 1.5 and DisplayTag 1.2.

    Thanks.

     
    • The problem is when parse de html source to xml. The source code contains special characters(áéíóú...) and generate code is not correct.    
      This occurs when the attribute titleKey of display:column tag are present. If instead of using the attribute titleKey use the title attribute of the special characters are displayed correctly.

              
      Any solution?

      Thanks.

       
    • Jens Kapitza
      Jens Kapitza
      2009-07-17

      this sounds like an wrong encoding (are your jsp's all in UTF-8)
      is the client correct?
      server in UTF-8 (tomcat use default(file)-encoding=utf8?)

       
  • This is because you use messages from .properties file - .properties are officially (see java.util.Properties javadoc) read as ASCII (ISO-8859-1).