When trying to insert into the database a string such as :
"セブンゴースト; 神幻拍挡07;"
there is no error but it is read as nil after a select.
Exemple :
string = "セブンゴースト; 神幻拍挡07;"
db = SQLite3::Database.new "randomfilename"
prep = db.prepare "INSERT INTO test_db VALUES (NULL, ?)"
prep.bind_param 1, string
prep.execute
prep2 = db.prepare "SELECT * FROM test_db"
ret = prep2.execute
p ret
this will display something like this : [[0, nil]]
( assuming that the table has a primary int key as first value and a TEXT for second )
It is possible that my database does not have the good encoding but if it is the case, how do I change it without loosing everything ?