Java URI Decode uriDecoding(String str)

Here you can find the source of uriDecoding(String str)

Description

uri Decoding

License

Apache License

Declaration

public static String uriDecoding(String str) 

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 uriDecoding(String str) {
        String result = str;/*from   ww w  .  j  av a  2s  .  c  o  m*/
        try {
            result = URLDecoder.decode(str, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return result;
    }
}

Related

  1. decodeURI(URI uri)
  2. decodeURIComponent(String s, String charset)
  3. decodeURItoMap(String URIstring)
  4. uriDecode(String encoded)
  5. uriDecodePath(String path)