I'm getting encoding problem when I insert names in a mySQL table, that contains special characters, like "ö", "ä" etc. For example, the word "Öl" becomes "öl".
I've tried to write the names to a text file and then they show up properly.
I've tried to insert the names in phpMyAdmin using SQL-statements, and that works good as well.
Now I found a solution in setting mysql_query('SET NAMES utf8;'); before the insert query.
Is this how it should be done, or is there a better way?