 |
Ebase Technology Forum
|
| View previous topic :: View next topic |
| Author |
Message |
dvanhussel Ebase User

Joined: 19 Oct 2007 Posts: 13
|
Posted: Tue Sep 15, 2009 1:31 pm Post subject: Turkisch characters in MySQL |
|
|
We have some problems with writing Turkish characters to a MySQL database.
- Ebase is forced to use UTF-8 (Internationationalization, dutch, properties, Always use UTF-8 )
- The MySQL database is set to UTF-8
- The default character set of the server (Novell Suse Open Enterprise Linux 10)
I retrieve some fields with a webservice containing Turkisch characters (ç, ı) the characters are shown ok in the browser.
When the data is written to the database 'Karaçaylı' is changed to 'Kara?ayl?'.
The strange thing is, that when I look up the query in the execution log from Ebase Desgigner, it looks ok (NaamP2='Karaçaylı') but the tomcat log shows: NaamP2=Kara?ayl?'
When I copy the query from the execution log and execute it directly in the database, the data is correctly written.
Where can i force Ebase/tomcat to use UTF-8? |
|
| Back to top |
|
 |
dvanhussel Ebase User

Joined: 19 Oct 2007 Posts: 13
|
Posted: Thu Sep 17, 2009 2:53 pm Post subject: Solved! |
|
|
With thanks to Andy from Ebase:
Have you specified UTF-8 on your MySQL connection string? You can do it like this:
jdbc:mysql://localhost/mydb?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
With the bold part added to the connectionstring, the characters are written to the database in the correct format. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|