I have a japanese string (encoding Shift_Jis).I have to replace a part of this string with another string depending on user input via an HTML form. I am not able to do this.The String.replace method does not work for non-english characters.I even tried Pattern and Matcher class in java.util.regex package but that too does not work. I have already set the form attribute as enctype="multiform/form-data". also in JSP ,I have done <%@ page contentType="text/html;charset=UTF-8"%>.
Is there any way to achieve it? Please help.It is quite urgent.