Possible Duplicate:
charset issue with mysql
So i have mysql string that has some of these characters in it:
,
?
“so”
‘so’
:
;
!
@
#
$
%
^
&
*
(
)
{
}
[
]
\
<
>
.
/
`
~
¨
°
¯
¡
¢
£
§
¸
´
When it is inserted into my database via the php command mysql_query some of the characters show up incorrectly. For instance, “so” becomes “so†However, when I print out the query and run it by hand in phpmyadmin, it works correctly. What is the correct way to insert these characters into the database so that they don’t get all mangled?
Use this command before run your insert query: