I am using JPA to access an Oracle database which has its encoding set to ISO-8859-1.
How do I set NLS_LANG using JPA to receive data in the correct encoding?
I suspect it should be set somewhere in the persistence context XML.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The JDBC driver takes care of everything. It knows what the encoding value is and uses the appropriate encoding without any action on your part.