PHP/or mysql messing up my insert -
possible duplicate:
charset issue mysql
so have mysql string has of these characters in it:
, ? “so” ‘so’ : ; ! @ # $ % ^ & * ( ) { } [ ] \ < > . / ` ~ ¨ ° ¯ ¡ ¢ £ § ¸ ´
when inserted database via php command mysql_query of characters show incorrectly. instance, “so” becomes “so†however, when print out query , run hand in phpmyadmin, works correctly. correct way insert these characters database don't mangled?
use command before run insert query:
mysql_query('set names utf8');
Comments
Post a Comment