> -----Original Message-----
> From: Tuncay Baskan (İnternet Grubu)
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 10:17 PM
> To: '[EMAIL PROTECTED]'
> 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("[EMAIL PROTECTED]");
>       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.

Reply via email to