Here you can find the source of pathDecode(String path)
public static String pathDecode(String path) throws UnsupportedEncodingException
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { public static String pathDecode(String path) throws UnsupportedEncodingException { if (path != null) { path = path.replace("+", "%2b"); path = URLDecoder.decode(path, "UTF-8"); }/* www .j ava 2 s . co m*/ return path; } }