Java URL Decode decode(String input)

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

Description

decode

License

Open Source License

Declaration

public static String decode(String input) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    private static String systemEncoding = System.getProperty("file.encoding");

    public static String decode(String input) {
        try {//  ww w.j a  v a 2  s .c o  m
            return URLDecoder.decode(input, systemEncoding);
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
    }
}

Related

  1. decode(final String string)
  2. decode(Object value)
  3. decode(String content)
  4. decode(String encoded)
  5. decode(String encodeMsg)
  6. decode(String input)
  7. decode(String path)
  8. decode(String path, String encoding)
  9. decode(String raw)