Java URL Parameter Builder stringUncode(String param)

Here you can find the source of stringUncode(String param)

Description

string Uncode

License

Apache License

Declaration

public static String stringUncode(String param) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class Main {

    public static String stringUncode(String param) {
        if (param != null && !param.trim().equals("")) {
            try {
                param = URLDecoder.decode(param, "UTF-8");
            } catch (UnsupportedEncodingException e) {
                e.printStackTrace();/*from  w w  w  . j  av  a 2s  .  co m*/
            }
        }
        return param;
    }
}

Related

  1. sendPostRequest(String path, Map params, String enc)
  2. serializeParameters(final Map parameters)
  3. serializeParameters(final Map params)
  4. stringToMap(String input)
  5. stringToMap(String input)