Here you can find the source of decode(String path)
private static String decode(String path)
//package com.java2s; /******************************************************************************* * Copyright (c) 2010 The Eclipse Foundation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors://from w w w.j a v a 2 s . c o m * The Eclipse Foundation - initial API and implementation *******************************************************************************/ import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { private static String decode(String path) { try { return path == null ? null : URLDecoder.decode(path, "UTF-8"); //$NON-NLS-1$ } catch (UnsupportedEncodingException e) { //should not be possible return path; } } }