Question on charset used to write data in Prepared statement

Hi,

I am writing to an Oracle database using a thin JDBC connection.

I have data in Unicode which I attach to a PreparedStatement using .setString or setAsciiStream(). As far as I can see the second one if deprecated.

The database is not using Unicode - how do I control the Charset used (ie ISO8859_1) or is it automatically determined from the database?

Thanks for any ideas.

MArk

[419 byte] By [markee1a] at [2007-9-19]
# 1
You usually configure that in the database.
DrClapa at 2007-7-8 > top of java,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
But if the data is UNicode, will JDBC automatically convert it to whatever (including 7 bit?)MArk
markee1a at 2007-7-8 > top of java,Database Connectivity,Java Database Connectivity (JDBC)...