Android URL Decode decode(String s)

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

Description

decode

Declaration

public static String decode(String s) 

Method Source Code

//package com.java2s;

import java.io.*;
import java.net.URLDecoder;

public class Main {

    public static String decode(String s) {
        if (s == null) {
            return "";
        }//from www . ja va 2 s.c o m
        try {
            return URLDecoder.decode(s, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }
}

Related

  1. decode(String url)
  2. decodeURL(String value)
  3. decodeUri(Context ctx, Uri selectedImage)
  4. urlDecode(String in)
  5. decode(final String content, final String encoding)
  6. decodeUrl(String s)
  7. decodeUrl(String s)
  8. decodeUrlFormEncoded(String data)
  9. parseForHTTP(String str)