Jan Algermissen
Jan Algermissen

Reputation: 4978

How to set Oracle NLS_LANG when using JPA

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.

Upvotes: 3

Views: 2248

Answers (1)

JB Nizet
JB Nizet

Reputation: 691735

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.

Upvotes: 2

Related Questions