Here you can find the source of decodeURI(String uri)
Parameter | Description |
---|---|
uri | - |
Parameter | Description |
---|---|
UnsupportedEncodingException | - |
public static String decodeURI(String uri) throws UnsupportedEncodingException
//package com.java2s; /*/*from www . j a v a 2 s . c o m*/ * CommonUtil.java * * Copyright 2007 NHN Corp. All rights Reserved. * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { /** * URLDecoder.decode wrapping * @param uri - * @return - * @throws UnsupportedEncodingException - */ public static String decodeURI(String uri) throws UnsupportedEncodingException { if (uri == null) { return null; } return URLDecoder.decode(uri, "UTF-8"); } }