Hello everyone,

I have a simple JSP, with a text input and a submit button, as follow:

<form accept-charset="UTF-8" method="get" action="<%=request.getContextPath()%>/someAction">
Enter Search: <input type="text" name="keyword"/><input type="submit" />
</form>

And in my Servlet, I am reading the input, as such:

String word = request.getParameter("keyword").trim();
System.out.println("Keyword: " + word);

The input I am entering is: من
And the output I am getting is as follow:

Keyword: &#1605;&#1606;

Is there anything I am missing?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.