Android URL Decode decode(String url)

Here you can find the source of decode(String url)

Description

decode

Declaration

public static String decode(String url) 

Method Source Code

//package com.java2s;

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

import org.apache.http.protocol.HTTP;

public class Main {
    public static String decode(String url) {
        String str = new String();
        try {//from www  .j av  a2  s  .  com
            str = URLDecoder.decode(url, HTTP.UTF_8);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return str;
    }
}

Related

  1. decodeUrl(String url)
  2. decode(String url)
  3. decodeURL(String value)
  4. decodeUri(Context ctx, Uri selectedImage)
  5. urlDecode(String in)
  6. decode(final String content, final String encoding)