Author: hoang_to
Date: 2010-05-20 05:28:05 -0400 (Thu, 20 May 2010)
New Revision: 3152
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java
Log:
GTNPORTAL-1228: Portlet 's non-English labels are not displayed properly in EDIT mode
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java 2010-05-20
09:27:08 UTC (rev 3151)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java 2010-05-20
09:28:05 UTC (rev 3152)
@@ -77,6 +77,8 @@
import javax.portlet.PortletMode;
import javax.servlet.http.Cookie;
+
+import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -216,7 +218,7 @@
if (portletResponse instanceof FragmentResponse)
{
FragmentResponse fragmentResponse = (FragmentResponse)portletResponse;
- content = fragmentResponse.getContent();
+ content = new String(fragmentResponse.getBytes(),
Charset.forName("UTF-8"));
}
else
{
@@ -252,6 +254,7 @@
}
portletContent.setLength(0);
+
portletContent.append(content);
}
catch (Throwable ex)
Show replies by date