I am currently creating a managerial game using sqlite and C ++. I found tutorials to cover almost every area needed to create my game, but the little problem annoyed me for ages.
when I write a string in C ++, for example "Andreas Klöden", and use it with the sqlite operator to insert data into my sqlite database, special characters with umlaut ö are lost, this applies to many European names such as Léfevre, Würth, etc. .
I was looking for an answer, it seems that C ++ strings are in ANSII or something like that. Somehow, I have to write unicode strings instead to avoid the problem shown below:
http://imageshack.dk//viewimage.php?file=/imagesfree/0Ej53884.png
Does anyone know how to write unicode strings in C ++ so that I can export / import the correct data from sqlite database?
source
share