|
Hi All, I’ve some query on how JDBC is supposed to convert
encoding of characters while updating/selecting multibyte
strings to/from a Database supporting Unicode characters. The specific queries
are like –
-
If from a Java client an Oracle DB,
having UTF-8 as database character set, is being connected, how does JDBC
driver know what is the database character set ? -
If from a Java Client a SQL Server
2000 DB instance is queried for a nvarchar field (SQL
server 2000 always expects nvarchar characters to be
in UCS-2), how JDBC driver will know that it has to send UCS-2 characters -
If from a Java Client a SQL Server
2000 DB instance is queried for a varchar field having
encoding type same as the code page of the locale of the Windows on which the
SQL server is running, how JDBC driver will know that it has to send multibyte characters corresponding to that code page
At the high level, what I’m looking for are the
working principles for converting encoding of characters while updating/selecting
multibyte strings to/from a Database based on JDBC
specification (or absence of any such thing). Thanks in advance, Sourav |
- Re: Encoding converion through JDBC souravm
- Re: Encoding converion through JDBC Philippe Verdy
- Re: Encoding converion through JDBC Philippe Verdy
- Re: Encoding converion through JDBC Mark Davis
- Encoding converion through JDBC souravm

