I wrote a procedure returning a plain object, having all the attributes declared as VARCHAR2. My java code, after executing the procedure, read these objectes and all I see is three question marks "???" instead of text. It seems it may be an NLS_LANG problem, but I'm not really sure.
Is this an NLS_LANG problem? How can I resolve this?
NOTE: The Java 1.5 app is querying a Oracle 10g DB.
When using international characters with Oracle object types, you need to include the orai18n.jar
which can be downloaded at the same place as the driver itself.
From the driver's readme file:
orai18n.jar: It contains classes for NLS support in Oracle Object and Collection types.
Seems like unicode issue, try getting your Database Character Set by:
Select value from SYS.NLS_DATABASE_PARAMETERS where PARAMETER = 'NLS_CHARACTERSET'
Should the problem still exist i suggest you take a look at Unicode support with Oracle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With