Author: ghjboss
Date: 2012-05-31 16:49:10 -0400 (Thu, 31 May 2012)
New Revision: 8711
Modified:
epp/portal/branches/EPP_5_2_0_GA_BZ821924/component/web/controller/src/main/java/org/exoplatform/web/WebAppController.java
Log:
commit the fix for BZ821924
Modified:
epp/portal/branches/EPP_5_2_0_GA_BZ821924/component/web/controller/src/main/java/org/exoplatform/web/WebAppController.java
===================================================================
---
epp/portal/branches/EPP_5_2_0_GA_BZ821924/component/web/controller/src/main/java/org/exoplatform/web/WebAppController.java 2012-05-15
18:56:53 UTC (rev 8710)
+++
epp/portal/branches/EPP_5_2_0_GA_BZ821924/component/web/controller/src/main/java/org/exoplatform/web/WebAppController.java 2012-05-31
20:49:10 UTC (rev 8711)
@@ -45,6 +45,7 @@
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
+import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
@@ -309,6 +310,15 @@
public void service(HttpServletRequest req, HttpServletResponse res) throws Exception
{
boolean debug = log.isDebugEnabled();
+ try
+ {
+ // We set the character encoding now to UTF-8 before obtaining parameters
+ req.setCharacterEncoding("UTF-8");
+ }
+ catch (UnsupportedEncodingException e)
+ {
+ log.error("Encoding not supported", e);
+ }
String portalPath = req.getRequestURI().substring(req.getContextPath().length());
Router router = routerRef.get();
Show replies by date