Here you can find the source of decodeStr(String str)
public static final String decodeStr(String str)
//package com.java2s; //License from project: Open Source License import java.io.UnsupportedEncodingException; import java.net.URLDecoder; public class Main { public static final String ENCODE_CHARACTERSET = "UTF-8"; public static final String decodeStr(String str) { try {//from w w w . j a v a 2s .c o m str = URLDecoder.decode(str, ENCODE_CHARACTERSET); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } return str; } }