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: من
Is there anything I am missing?