I am trying to insert Japanese character in oracle database, for that I have changed column datatype as NVARCHAR2 and following changes are done in jsp file.
<%a page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<% response.setContentType("text/html; charset=utf-8");
request.setCharacterEncoding("UTF-8");
%>
followed by changing url encoding in apache server.XML and set it to utf-8.
In action class I wrote (request.setCharacterEncoding("UTF-8");)
.
But when I retrieve customer comments written in Japanese with help of request parameter it gives me characters like " å¯©æ»æé ";
.
Please let me know what additional changes need to be done so that java can read Japanese characters.