actually I have got the following problem:
I enter some russian letters in a WxEdit field and want to save this in a SQLite Database - but the record doesn't become saved.
If I use normal characters everything works fine but if I use russian letters oder sth. like this nothing becomes written in my database.
Code: Select all
wxString command;
command << "REPLACE INTO vokabeln (listen_id, vokabel, uebersetzung) VALUES ('liste1', '"<< WxEdit1->GetValue() <<"', '"<< WxEdit2->GetValue() <<"');";
Code: Select all
sqlite3* Database;
if(sqlite3_open(global_sprache_file_open, &Database) != SQLITE_OK)
{
wxMessageBox("ERROR", "ERROR", wxOK);
}
else
{
int result = sqlite3_exec(Database, command.c_str() , 0 , 0 , 0);
if (result!=SQLITE_OK)
{
wxMessageBox("could not execute sql command","error",wxOK);
}
else
{
wxMessageBox("command was successful executed","good",wxOK);
}
}
sqlite3_close(Database);
If I add a record with an other database-management-tool it works perfectly.
Do you have any idea what I'm doing wrong?
-Eric