Ebase Technology Forum Index Ebase Technology Forum

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Turkisch characters in MySQL

 
Post new topic   Reply to topic    Ebase Technology Forum Index -> Databases with Ebase
View previous topic :: View next topic  
Author Message
dvanhussel
Ebase User


Joined: 19 Oct 2007
Posts: 13

PostPosted: Tue Sep 15, 2009 1:31 pm    Post subject: Turkisch characters in MySQL Reply with quote

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
View user's profile Send private message
dvanhussel
Ebase User


Joined: 19 Oct 2007
Posts: 13

PostPosted: Thu Sep 17, 2009 2:53 pm    Post subject: Solved! Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ebase Technology Forum Index -> Databases with Ebase All times are GMT
Page 1 of 1

 
Jump to:  
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