I'm creating c# wpf application and I'm using SQLite database for my data (sqlite3.dll library). I'm from Slovenia so i need to store strings that contains characters like ščćžđ. I can succesfully store my data and set my dataGrid itemsSource when my query looks like this:
List<Odgovor> list = AppData.DBObject.Query<Odgovor>("select * from Odgovor");
ObservableCollection<Odgovor> odgovorList = new ObservableCollection<Odgovor>(list);
this.dataGridOdgovor.ItemsSource = odgovorList;
It's succesfull when i do query
"select * from Odgovor where PersonName = \"Nick\"";
But i don't get any resoults when i do this query (and data are in my database so it's SQLite encoding problem).
"select * from Odgovor where PersonName = \"Saša\"";
I wasn't able to find solution so far. I can't find how sqlite replace special characters so that i could replace every special character in code... but i believe that there is prettier solution :)