This discussion is archived
4 Replies Latest reply: Jul 9, 2013 6:42 PM by EJP RSS

URL encoding /decoding

85560216-5b34-4c56-bb2a-8469e8294d97 Newbie
Currently Being Moderated

Hello

 

I just taken  over for some one who left the company. I am trying to figure  WHY something was done.

WHY would you do the following?

 

String content= "Hello there, is this Jim's code?";

content = URLDecoder.decode(URLEncoder.encode(content, "ISO8859-1"), "UTF-8"));

 

Patrick

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points