Java URL Decode decodePercent(String s)

Here you can find the source of decodePercent(String s)

Description

decode Percent

License

Apache License

Declaration

public static String decodePercent(String s) 

Method Source Code

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

import java.net.URLDecoder;

public class Main {
    public static final String ENCODING = "UTF-8";

    public static String decodePercent(String s) {
        try {/*from   w  w  w.  ja  v a2s.c o  m*/
            return URLDecoder.decode(s, ENCODING);
            // This implements http://oauth.pbwiki.com/FlexibleDecoding
        } catch (java.io.UnsupportedEncodingException wow) {
            throw new RuntimeException(wow.getMessage(), wow);
        }
    }
}

Related

  1. decodeJobHistoryFileName(String logFileName)
  2. decodeKVMap(String keyValueString)
  3. decodeName(final String name)
  4. decodeName(String createdName)
  5. DecodePath(String path)
  6. decodePercent(String str)
  7. decodeRequestBody(String requestBody)
  8. decodeRequestString2(String inputString)
  9. decodeRfc5849(final String value)