Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1030

Charset encondign forced to UTF-8 in web application

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.0.M1
    • None
    • WEB MVC
    • None
    • xubuntu 9.04
      jdk1.5.0.7
      maven 2.0.9
      SpringRoo 1.1.0-M1

    Description

      There is an existing filter to force the charset enconding to UTF-8 in web.xml (./src/main/webapp/WEB-INF/web.xml) file created for a web application with ROO.

       
          <filter>
              <filter-name>CharacterEncodingFilter</filter-name>
              <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
              <init-param>
                  <param-name>encoding</param-name>
                  <param-value>UTF-8</param-value>
              </init-param>
              <init-param>
                  <param-name>forceEncoding</param-name>
                  <param-value>true</param-value>
              </init-param>
          </filter>
      

      It could be better that the encoding of this filter shouldn't override existing request encodings in the application for default:

      • forceEncoding = false.

      And then, the user could define the encoding for each jspx, html, etc in each case or set true the variable in case is needed.

      Thanks.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ricardogarfe Ricardo GarcĂ­a
              Archiver:
              tmarshall Trevor Marshall

              Dates

                Created:
                Updated:
                Archived: