I have a problem reading the utf-8 string from the database.
I found out that the problem is with the symbol U+FF08
Code example:
auto res = session.sql(u8"SELECT '(' as zh").execute();
try {
res.fetchOne()[0];
}
catch (std::exception ex) {
std::cout << ex.what() << std::endl;
}
Output:
CDK Error: Failed string conversion
I found out that the problem is with the symbol U+FF08
Code example:
auto res = session.sql(u8"SELECT '(' as zh").execute();
try {
res.fetchOne()[0];
}
catch (std::exception ex) {
std::cout << ex.what() << std::endl;
}
Output:
CDK Error: Failed string conversion