Here you can find the source of decode(String uri)
Parameter | Description |
---|---|
uri | a parameter |
public static String decode(String uri)
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { /**/*from w w w.j a v a 2 s . co m*/ * decode uri by URLDecoder * @param uri * @return */ public static String decode(String uri) { String newUri = uri; try { newUri = URLDecoder.decode(uri, "UTF-8"); } catch (UnsupportedEncodingException e) { } return newUri; } }