Here you can find the source of decodePercent(String s)
public static String decodePercent(String s)
//package com.java2s; //License from project: Apache License import java.net.URLDecoder; public class Main { public static final String ENCODING = "UTF-8"; public static String decodePercent(String s) { try {/*from w w w. ja v a2s.c o m*/ return URLDecoder.decode(s, ENCODING); // This implements http://oauth.pbwiki.com/FlexibleDecoding } catch (java.io.UnsupportedEncodingException wow) { throw new RuntimeException(wow.getMessage(), wow); } } }