Monday, February 28, 2011

Non English Character Encoding In GWT

If you are typing the data in plain English then the data will be persisted in your database.Suppose if you are typing the data in some non-english format, then the data will not be persisted.

All format of value supports the front end as well as back end, then what is the issue for not saving the data.

Go to your data source xml file (Database Data source File will be located in your Jboss Deploy Folder) and add this encoding UTF-8, so that all kind of data will be persisted.

*After opening this data source xml file.
*Find the connection url and add this character Encoding "&useUnicode=true&characterEncoding=utf-8".
Example
jdbc:mysql://localhost:3306/yourdb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8



For Further Reading,
Database, Java

0 comments:

Post a Comment