<?php
$insert = "I want to store Å Ä Ö in my database";
mysql_query(" INSERT INTO test (text) VALUE ('$insert')") or die(mysql_error());
?>
Just by using this piece of code, the database stopped storing data as fast as a special symbol (Å Ä Ö) was encountered so in this case I would only find the string "I want to store " in my database table. However I tried to put:
<?php
mysql_query("SET NAMES 'utf8'") or die(mysql_error());
mysql_query("SET CHARACTER SET 'utf8'") or die(mysql_error());
?>
before the INSERT script, it worked somewhat better but now the issue is that all the special symbols are replaced with question marks ( ? ) in the database tables. My table collation is utf8_swedish_ci. The meta, charset is UTF-8.