Author: jleroux
Date: Wed Nov 15 10:54:28 2017
New Revision: 1815302
URL:
http://svn.apache.org/viewvc?rev=1815302&view=revLog:
No functional change, simpler code is best
Modified:
ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/WidgetWorker.java
Modified: ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/WidgetWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/WidgetWorker.java?rev=1815302&r1=1815301&r2=1815302&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/WidgetWorker.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/WidgetWorker.java Wed Nov 15 10:54:28 2017
@@ -21,7 +21,6 @@ package org.apache.ofbiz.widget;
import java.io.IOException;
import java.io.StringWriter;
import java.net.URLEncoder;
-import java.nio.charset.Charset;
import java.util.Map;
import javax.servlet.ServletContext;
@@ -130,7 +129,7 @@ public final class WidgetWorker {
externalWriter.append('=');
UtilCodec.SimpleEncoder simpleEncoder = (UtilCodec.SimpleEncoder) context.get("simpleEncoder");
if (simpleEncoder != null && parameterValue != null) {
- externalWriter.append(simpleEncoder.encode(URLEncoder.encode(parameterValue, Charset.forName("UTF-8").displayName())));
+ externalWriter.append(simpleEncoder.encode(URLEncoder.encode(parameterValue, "UTF-8")));
} else {
externalWriter.append(parameterValue);
}