Charbel Keyrouz wrote:What if the databases stores it as rubbish character.
In order to simply store it and read it the same way, the database should have the same character set to which this string's characters belong.
I am going to write Tamil name to enter database:
kk.jsp
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html:text name="updateForm" property="tamilName" bundle="default" />
In Action.java
if(request.getCharacterEncoding() == null)
request.setCharacterEncoding("UTF-8");
String enameT=request.getParameter("tamilName");
When it Prints in Action like ==>மனà¯à®à®°à¯
Kindly give the Solution
...........Thanks in advance......