I am facing a problem which is independent of dbunit jar versions as I have tried with dbunit-2.0.jar, dbunit-2.2.1.jar, dbunit-2.4.9.jar, dbunit-2.2.3.jar and dbunit-2.3.0.jar and independent of Oracle Database version, as I tried on oracle11g and oracle12c.That the data which I try to insert through xml file into a column of datatype NCLOB for a table , it inserts junk characters which are of no use into the system for further processing.
But if I change the datatype of that column as CLOB it works perfectly fine while using dbunit for Oracle database insertion operation through XML. I am not sure what can be the reason for this behavior.
Our application is supporting NCLOB data insertion through Hibernate engine as well as direct SQL insert query for Oracle database but only insert junk characters while using dbunit setup for test Case execution.
We can't change datatype of that column from NCLOB to CLOB as our application supports multi-languages so we don't want to enforce any character set on this data. Please suggest, what can be done.