removed common.io
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/performfish-analytics-portlet@179322 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
47a0c1b16d
commit
1336c20569
|
@ -9,7 +9,6 @@ import java.util.Base64;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.commons.io.Charsets;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@ -47,7 +46,7 @@ public class UrlEncoderUtil {
|
||||||
for (String value : parameters.get(key)) {
|
for (String value : parameters.get(key)) {
|
||||||
|
|
||||||
if(key.compareToIgnoreCase("DataInputs")==0) {
|
if(key.compareToIgnoreCase("DataInputs")==0) {
|
||||||
query+=String.format(key+"=%s", URLEncoder.encode(value, Charsets.ISO_8859_1.displayName()))+"&";
|
query+=String.format(key+"=%s", URLEncoder.encode(value, "ISO-8859-1"))+"&";
|
||||||
}else {
|
}else {
|
||||||
query+=String.format(key+"=%s", URLEncoder.encode(value, charset))+"&";
|
query+=String.format(key+"=%s", URLEncoder.encode(value, charset))+"&";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue