Here you can find the source of decodeWithDefaultCharSet(String urlToDecode)
public static String decodeWithDefaultCharSet(String urlToDecode)
//package com.java2s; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.nio.charset.Charset; public class Main { public static String decodeWithDefaultCharSet(String urlToDecode) { try {/*from w ww . java2s . c o m*/ return URLDecoder.decode(urlToDecode, Charset.defaultCharset().name()); } catch (UnsupportedEncodingException e) { return urlToDecode; } } }