Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

0
Posted

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

0

Location: http://www.jguru.com/faq/view.jsp?EID=79756 Created: Jun 18, 2000 Modified: 2000-07-25 17:34:57.98 Author: Kalyanaraman Parthasarathy (http://www.jguru.com/guru/viewbio.jsp?EID=61494) Question originally posed by Tian Hao (http://www.jguru.com/guru/viewbio.jsp?EID=56209 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.

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.