Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

mysql-connector-cpp-8.0.20 CDK Error: Failed string conversion (1 reply)

$
0
0
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

Viewing all articles
Browse latest Browse all 527

Trending Articles