0

Im attempting to store the following word in a TEXT field in my MYSQL db table:

Valentine’s

But for some reason it stores as the following:

Valentineâs

Is there a PHP function I can use to clean the string before i store it in the database..

the CHARSET of the table is latin1

4

1 回答 1

0

htmlspecialchars(); is what you're looking for I guess.

于 2013-02-14T01:05:32.227 回答