-2
4

2 回答 2

0

You probably need to tell the database you want to use a different character set. Try sending a query with SET NAMES 'utf8' right after you connect, and before you insert anything.

于 2013-05-13T03:02:12.113 回答
0

Try addslashes in php documentation

于 2013-05-13T09:41:27.780 回答