After converting my application from PowerBuilder 9 to PowerBuilder 17 all of a sudden certain comments are appearing in Chinese.
I have used SELECTBLOB to fetch the data and converted it to string.
The column "comnt" is declared as a BLOB in Oracle
The resolution I found is to use the utility utl_raw.cast_to_varchar2(dbms_lob.substr(d.comnt)) to convert the blob data to varchar2 directly in Oracle.
This works but after going through some articles it looks like it will convert first 32767 characters. What if the comment entered by user is more than that?
For now I am good but please let me know if there is any better solution. Any help would be appreciated.
Thanks
Shawn.
I didn't know String function has a overload where we can send the Encoding.
These is really wonderful!!
Thanks
Swarnendu.