I'm trying to construct an URL with query string containing other characters (hebrew in my case). However, when my webapp receives the request, the extracted request parameters are gibrish...
How can I resolve this?
new URL("http://localhost:8080/SRV/page.jsp?param=" + URLEncoder.encode("heb text", "UTF-8")).openConnection();
target page:
<%
System.out.println("Receive: " + request.getParameter("param"));
%>
I'm using tomcat6, jdk6, windows7 x64
edit: this is my page declaration:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>