[Installation, Configuration & DEPLOYMENT] - Encoding problem
by mad_rug
Hi
I'm trying to fix an encoding problem, but so far, no success.
I want to work with UTF-8. I can store UTF-8 data (I use latin characters), read from the database and display it, without problems. The only issue is when form data is sent from the browser to the server. I use Spring Framework and Spring MVC, and the command objects that I get inside the server already have encoding issues ('á' becomes 'ÃÂá').
What I already tried:
- my JSP encoding is set to UTF-8 by 'page' directive
- set encoding by inside
- set encoding for tags
- use URIEncoding for the connector in server.xml
- calling 'request.setCharacterEncoding("UTF-8");' before getting the parameters from the request (command objects are assembled by the framework, so I tested it inside the 'onBind' method)
None of these solved the issue. Calling 'request.getCharacterEncoding();' returns null, so I guess I haven't found the right place to set the encoding.
Anyone can help me? Where do I have to set the encoding?
Many thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246811#4246811
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246811
16 years, 3 months
[Installation, Configuration & DEPLOYMENT] - Re: configuring remote access
by somakd
21:42:43,375 INFO [TomcatDeployment] org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:163) deploy, ctxPath=/images_bak
21:42:43,432 INFO [TomcatDeployment] org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:163) deploy, ctxPath=/images_empty
21:42:43,497 INFO [TomcatDeployment] org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:163) deploy, ctxPath=/jmx-console
21:42:43,537 INFO [TomcatDeployment] org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:163) deploy, ctxPath=/maitai
21:42:43,615 INFO [STDOUT] org.jboss.logging.util.LoggerStream.write(LoggerStream.java:156) Quartz Initializer Servlet loaded, initializing Scheduler...
Above is a portion of servler.log file, and my app name is maitai.
No, 9080 is not a typo, I am trying to run Jboss on that port only, so I changed the values in ../jbossweb.sar/server.xml
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246810#4246810
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246810
16 years, 3 months