How can I store and retrieve Unicode or Double Byte data in a database using JDBC?

Kalyanaraman Parthasarathy

The underlying DBMS must support Unicode or the desired encoding. Internally, Java data are stored as Unicode only. So, if the Database supports Unicode and the table was created that way, the data will be written to the encoding of the table. Nothing needs to be done specifically, because the driver will handle the translation. See Supported Encodings and your DBMS documentation for more on encodings, code pages and so on.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact