Mysql and gwt character set issue

I have a SmartGWT application that interacts with a mysql database using rpc services.
Suppose this is a simple form with a text box and two save and load buttons.
My database and tables and all sort fields are utf8_persian_ci.
All java source files and module html and xml files are saved with utf8 character set. and also I have a meta tag in the module html file that contains my form:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

my application is working correctly in eclipse development mode as well as on my local tomcat server. Then I put it on a remote server (compress it using jar.exe into a military file with the -cvf flag, and then upload it using the plesk server control panel).
In this mode, when I load data from a mysql table (I load a record from any table), the data will be loaded into my form without problems, but when I want to save some data (in Persian), mysql just writes some? (question mark) in the fields of the characteristics table.

Any idea?

+3
source share
1 answer

What is your connection string to the database?

, , :

jdbc:mysql://localhost:3306/DB?useUnicode=true&characterEncoding=UTF-8
+2

Source: https://habr.com/ru/post/1742571/


All Articles