I have a cookie which is generated from a servlet and that I would like to be persistent - that is, set the cookie, close down IE, start it back up, and still be able to re
try{
encodedString = URLEncoder.encode(s, "UTF-8");
} catch (UnsupportedEncodingException e) {}
return encodedString;`a`
}
public static String decodeString(String s) {
String decodedString = s;
try{
decodedString = URLDecoder.decode(s, "UTF-8");
} catch (UnsupportedEncodingException e) {}
return decodedString;
}