On Apr 16, 2009, at 6:44 AM, galeazzi-at-korg.it |sqlite| wrote:
> I tried to use (const char*)sQuery.c_str() but it doesn't work. Any > ideas? That won't work because std::wstring.c_str() returns wchar_t* not char*. One way would be to convert your std::wstring to an std::string in UTF-8 format by some out of band means; then c_str() will return a char*. For example, on Windows you could use WideCharToMultiByte(CP_UTF8,...). You might also look at the C++ locale::ctype<charT>.narrow() function. _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

