Saving the text “février.xlsx” in DB is getting saved as “février.xlsx” when saved via J2EE application.
DB Version : Oracle Database 11g Enterprise Edition Release 11.2.0.4.0
NLS_CHARACTERSET - AL32UTF8
NLS_NCHAR_CHARACTERSET - AL16UTF16
public DocumentModel save(DocumentModel model) {
DocumentModel docModel = null;
try {
LOGGER.info("Name before saving into DB :"+model.getDocumentFileName());
docModel = entityManager.merge(model);
} catch (Exception exp) {
LOGGER.error("Exception occured");
}
return docModel;
}
Column Datatype in Table : VARCHAR2(256 CHAR)
Name before saving into DB : février.xlsx
Name saved DB : février.xlsx
I have tried to inserted in DB manually with insert statement. It is getting inserted correct but when inserted from application it's incorrect.