Hi,
I read a chinese character from the notepad using c++ in OMVS to pass it to the stored procedure in DB2. In the process, the three bytes chinese character is read byte by byte and so I get three junk characters in the table when it is run. I want the three bytes to be read as a single character instead of three characters.
I checked the way it is stored in wchar_t and it also stores the data in three wchar_t array. I am able to see that sqldbchar is the ideal solution to this but I don't know how to convert the data from char* to sqldbchar. Any help on this is much appreciated.
Thanks,
Zogo.
I read a chinese character from the notepad using c++ in OMVS to pass it to the stored procedure in DB2. In the process, the three bytes chinese character is read byte by byte and so I get three junk characters in the table when it is run. I want the three bytes to be read as a single character instead of three characters.
I checked the way it is stored in wchar_t and it also stores the data in three wchar_t array. I am able to see that sqldbchar is the ideal solution to this but I don't know how to convert the data from char* to sqldbchar. Any help on this is much appreciated.
Thanks,
Zogo.