This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
1) We are using oracle DB. we have a field in one of the table and that is having the type varchar2(500 bytes). please note that it is 500 bytes not characters.
2) From my java code I am using pstmt.setString() to set a value in this field.
- I want to know encoding will be used here to change characters to bytes -- the one configured in DB, Or the one which is default for the JVM. Or if there exists any default encoding setting at jdbc driver level.
- Also please let me know how to figure out default encoding used in this case. Any code snippet which will get me the encoding being used here?