So i copy paste text into mysql, but now i get strange hearts and diamonds. Chars i have in a tabel are € and ' the tablefield is utf8_general_ci any tips
Odd. I have those chars in a utf8_general_ci collated table and they work fine. What are you trying to do exactly and where are you getting the problem? Regards, Dennis M.
What interface are you using ? is it phpMyAdmin? Anyways, I think you have to do a SET NAMES 'utf8_general_ci' first
indeed, i am using phpmyadmin, Could you explain the SET NAMES 'utf8_general_ci' part??? btw: at the moment i copy +paste the special characters straight into the mysql db with phpmyadmin.
ah found it i think. By adding mysql_query("SET CHARACTER SET utf8"); mysql_query(â€SET SESSION collation_connection =’utf8_general_ci’â€); Code (markup): This saves me a lot time. Don't have to replace € etc