Here you can find the source of decodeUri(String string)
public static String decodeUri(String string)
//package com.java2s; //License from project: Open Source License import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { /** Decodes the given URI-encoded, UTF-8 {@code string}. */ public static String decodeUri(String string) { if (string == null) { return null; }// ww w.j ava2 s . c o m try { return URLDecoder.decode(string, "UTF-8"); } catch (UnsupportedEncodingException ex) { throw new IllegalStateException(ex); } } }