Java URL Decode decode(String s)

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

Description

decode

License

Apache License

Declaration

public static String decode(String s) 

Method Source Code

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

import java.net.URLDecoder;

public class Main {

    public static String decode(String s) {
        String ret = s;// w  ww  . ja va2  s  .  c  o  m
        try {
            ret = URLDecoder.decode(s.trim(), "UTF-8");
        } catch (Exception localException) {
        }
        return ret;
    }
}

Related

  1. decode(String path, String encoding)
  2. decode(String raw)
  3. decode(String s)
  4. decode(String s)
  5. decode(String s)
  6. decode(String s)
  7. decode(String s, boolean formDecode)
  8. decode(String s, String enc)
  9. decode(String source)