db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tuncay Baskan (İnternet Grubu) <Tuncay.Bas...@intertech.com.tr>
Subject RE: Character encoding problem
Date Thu, 19 Dec 2002 21:32:42 GMT
> -----Original Message-----
> From: Tuncay Baskan (İnternet Grubu)
> [mailto:Tuncay.Baskan@intertech.com.tr]
> Sent: Thursday, December 19, 2002 10:17 PM
> To: 'turbine-torque-user@jakarta.apache.org'
> Subject: Character encoding problem
> 
> 
> Hi all,
> 
> After a few troubles I finally get torque up and running. I have one 
> problem left. For example:
> 
> 	User user = new User();
> 	user.setEmail("user@example.net");
> 	user.setName("Başkan"); <-- 3. character is a Turkish character
> 	user.save();
> 
> When I check the inserted row from the database Turkish character is
> converted to '_'. This happens for all Turkish characters.
> 
> I have no problem reading/writing Turkish characters from/to 
> System.in|out
> streams. How can I correct this behavior?
> 
> Thanks.
> 

After searching the net and digging into Java Apidocs I found that the
problem is mysql JDBC driver's fault. Adding a characterEncoding parameter
to the JDBC connection URL solved the problem.

I think JDBC driver's design is flawed.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message