Here you can find the source of urlEncode(String urlPlain)
private static String urlEncode(String urlPlain)
//package com.java2s; //License from project: Open Source License public class Main { private static String urlEncode(String urlPlain) { String output = null;//from w w w.ja va 2s. c o m output = urlPlain.replace("?", "?"); return output; } }