Hi,
My data-bound components create a DSRequest with UTF8 characters in them. They are sent to the server. If I redirect them via DMI, I can see that the characters arrive to the server OK.
After I call the execute() method on the request, in the resulting DSResponse object, some (accented) characters are messed up.
The DSRequest belongs to a DataSource which is using the builtin SQL backend, with MySQL.
All my SQL tables are defined as UTF8.
The SQL command written by SQLDriver seems to contain the right characters (according to the eclipse console), but what is written in the DB is not correct.
It's like the sender and the receiver of the SQL command (ie. SQLDriver and mysql) had a different idea about the encoding of the SQL command string.
The interesting thing is that when I am only viewing the data (either on the client or on the server), all characters are transferred correctly. This problem only occurs if I try to save something.
What could be wrong?
What can be the reason of the asymmetry? (Reading is fine, writing is not.)
(I can observe all this on the server side, so no client/server communication problem here.)
My data-bound components create a DSRequest with UTF8 characters in them. They are sent to the server. If I redirect them via DMI, I can see that the characters arrive to the server OK.
After I call the execute() method on the request, in the resulting DSResponse object, some (accented) characters are messed up.
The DSRequest belongs to a DataSource which is using the builtin SQL backend, with MySQL.
All my SQL tables are defined as UTF8.
The SQL command written by SQLDriver seems to contain the right characters (according to the eclipse console), but what is written in the DB is not correct.
It's like the sender and the receiver of the SQL command (ie. SQLDriver and mysql) had a different idea about the encoding of the SQL command string.
The interesting thing is that when I am only viewing the data (either on the client or on the server), all characters are transferred correctly. This problem only occurs if I try to save something.
What could be wrong?
What can be the reason of the asymmetry? (Reading is fine, writing is not.)
(I can observe all this on the server side, so no client/server communication problem here.)
Comment