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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -