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

Charset encondign forced to UTF-8 in web application

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: None
    • Component/s: WEB MVC
    • Labels:
      None
    • Environment:
      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

              • Assignee:
                Unassigned
                Reporter:
                ricardogarfe Ricardo García
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: