title: Java servlet sendRequest - getParameter encoding Problem
body: <p>I'm building a web app for my lesson using java servlets. At some point i want to redirect to a jsp page, sending also some info that want to use there (using the GET method).
  In my servlet i have the following code:</p>
  
  <pre><code>String link = new String("index.jsp?name="+metadata.getName()+"&amp;title="+metadata.getTitle());
  
  response.sendRedirect(response.encodeRedirectURL(link));
  </code></pre>
  
  <p>In the jsp, I get these parameters using</p>
  
  <pre><code>&lt;%
  request.getParameter("name");
  request.getParameter("title");
  %&gt;
  </code></pre>
  
  <p>Everything works fine, except when the parameters do not contain only latin characters (in my case they can contain greek characters).
  For example if name=ΕΡΕΥΝΑΣ i get name=¡¥.
  How can i fix this encoding problem (setting it to UTF-8)?
  Isn't encodeRedirectURL() doing this job? Should I also use encodeURL() at some point? I tried the last one but problem still existed.</p>
  
  <p>Thanks in advance :)</p>