Here you can find the source of safeDecode(String s)
public static String safeDecode(String s)
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { public static String safeDecode(String s) { try {// w ww .j av a2 s.c om return URLDecoder.decode(s, "UTF-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); return s; } } }