Home > database >  C using OTL V4 orcale database insert operation char * type in Chinese,???????
C using OTL V4 orcale database insert operation char * type in Chinese,???????

Time:09-25

Use in vs2010 otl v4 orcale database operation, when insert statement for the following





After a lot of testing, found a problem: as long as it is value less than 0 x80 characters can insert normally, but in the client database operation, can insert and query in Chinese to the Chinese, just in a program using otl insert and query when there is such a problem,
Heavily to solve

CodePudding user response:

This should be the problem of c + + ~

CodePudding user response:

Set the corresponding character set,

CodePudding user response:

Thank you, have been solved! Set the environment variable LANG value to and the database consistent character encoding