visual studio 2010 - Encoding problems during INSERT with Sqlite3 C++ and VisualStudio2010 -
i'm developing small wrapper project using sqlite3 c++ api , visualstudio 2010. far goes , checking tool sqlitedatabasebrowser, main problem information try insert in table appears corrupted / doesn't appear @ all. table appears correctly created utf8 encoding. i tried using character set configuration values in vs "use multy-byte character set" , tried "use unicode character set" got no change in result. both gave me same problem corrupted data. use typical std::strings converted legacy c char* , i've seen in several examples should work sqlite3_bind_text(...) functions api provides. sqlite3_bind_int(stmt, 1, newshop.getid()); sqlite3_bind_text(stmt, 2, newshop.getname().c_str(), -1, sqlite_static); sqlite3_bind_text(stmt, 3, newshop.getlocation().c_str(), -1, sqlite_static); sqlite3_bind_text(stmt, 4, newshop.getpicturepath().c_str(), -1, sqlite_static); sqlite3_bind_text(stmt, 5, newshop.getregisters().c_str(), -1, sqlite_s...