(This is for feature requests and bugs in Struts2 jQuery Plugin - for getting help, please use the User Group. http://groups.google.com/group/struts2-jquery )
What steps will reproduce the problem? 1.declare a grid 2.log as french 3.search something that return nothing
What is the expected output? What do you see instead? The grid not display accents
Which struts2-jquery plugin version? 3.1.0
I think it is because you include the i18n/grid.locale-fr.js, the UTF-8 encoding is not set
- Sans titre.PNG 979
Comment #1
Posted on Jul 12, 2011 by Swift LionI try it out in the showcase and it works. See Attachment. Do you have set your page context correct to UTF-8?
- issue-590_fr.PNG 4.14KB
Comment #2
Posted on Jul 12, 2011 by Happy LionI set : struts.i18n.encoding=UTF-8 <%@page contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1" %>
Comment #3
Posted on Jul 12, 2011 by Happy LionI use Tomcat 6 with this configuration : Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8" />
Comment #4
Posted on Jul 12, 2011 by Happy LionAny idea ?
Comment #5
Posted on Jul 13, 2011 by Swift LionCan you please check with firebuug if your request to the jqgrid local file is in utf-8?
Comment #6
Posted on Jul 13, 2011 by Happy LionAll js : jquery-xmin.js, jquery-ui.js, jquery-struts2.js
are retreive with text/javascript;charset=ISO-8859-1
Comment #7
Posted on Jul 13, 2011 by Happy LionIf I add a charset filter org.springframework.web.filter.CharacterEncodingFilter, encoding = UTF-8 the problem is solved but I think a better solution is to set the charset when you include JS like this
Comment #8
Posted on Jul 14, 2011 by Swift LionI have add a scriptCharset:"UTF-8" tp the require method.
http://code.google.com/p/struts2-jquery/source/detail?r=1489
Comment #9
Posted on Jul 14, 2011 by Swift Lion(No comment was entered for this change.)
Comment #10
Posted on Jul 15, 2011 by Happy LionThanks a lot
Comment #11
Posted on Aug 11, 2011 by Swift Lion(No comment was entered for this change.)
Comment #12
Posted on Aug 12, 2011 by Happy LionThe 3.1.1 does not solve the problem. If I remove the filter encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 forceEncoding true encodingFilter /struts/i18n/grid.locale-fr.js
the grid display strange characters in message.
Comment #13
Posted on Aug 16, 2011 by Happy LionPlease ant idea ?
Status: Fixed
Labels:
Type-Defect
Priority-Medium
Component-Plugin
Milestone-3.1.1