Configuring encoding that is used for jdbc connection

2006-09-06 Thread Anton Tonchev
Hello!

I am trying to configure torque so that it manages cyrillic characters
correctly. The database (in my case MySQL) is configured to use as
default charset cp1251. Anyway when i try to save something in
cyrillic through torque i get  in the database.

Where i can specify the encoding of the connection to the database?

Thanks in advance.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configuring encoding that is used for jdbc connection

2006-09-06 Thread Thomas Fischer
Hi,

I do not know of a feature of Torque that allows setting the encoding of
characters sent to the database. I would expect one would have to set that
inside the  database driver. Did you check the Mysql Driver documentation ?

Thomas
Anton Tonchev [EMAIL PROTECTED] schrieb am 06.09.2006 09:52:51:

 Hello!

 I am trying to configure torque so that it manages cyrillic characters
 correctly. The database (in my case MySQL) is configured to use as
 default charset cp1251. Anyway when i try to save something in
 cyrillic through torque i get  in the database.

 Where i can specify the encoding of the connection to the database?

 Thanks in advance.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring encoding that is used for jdbc connection

2006-09-06 Thread Joe Carter

Certainly for Sybase it's set via the database itself.
It's independent of Torque.
We moved to UTF-8 to avoid charset issues.

Joe

On 06/09/06, Thomas Fischer [EMAIL PROTECTED] wrote:


Hi,

I do not know of a feature of Torque that allows setting the encoding of
characters sent to the database. I would expect one would have to set that
inside the  database driver. Did you check the Mysql Driver documentation
?

Thomas
Anton Tonchev [EMAIL PROTECTED] schrieb am 06.09.2006 09:52:51:

 Hello!

 I am trying to configure torque so that it manages cyrillic characters
 correctly. The database (in my case MySQL) is configured to use as
 default charset cp1251. Anyway when i try to save something in
 cyrillic through torque i get  in the database.

 Where i can specify the encoding of the connection to the database?

 Thanks in advance.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re[2]: Configuring encoding that is used for jdbc connection

2006-09-06 Thread Anton Tonchev
Thanks for the help.

The problem was not in torque but in the data that i receive before
that.

Anyway the way to set the encoding is through the parameters of the
connection string.

Regards.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]