I'm using this HTML to send user input to my database:
<textarea name="description" id="description" cols="30" rows="15"><?php echo $description; ?></textarea>
I parse it with $description = $_POST['description'];
and insert it into my Mysql database with INSERT INTO
When I look at the record in my database description is this: “This is one of those books that you don’t want to put down …†Romantic Times
It should be: “This is one of those books that you don’t want to put down …” Romantic Times
QUESTION: how can I save smart quotes and ellipses (...) to my database without them being converted to gibberish?
SOLVED: The solution I found that worked for me was to change my html page to UTF-8 everywhere, so the record would be displayed properly on the page. The record still contains the weird characters though. Here's the html code: meta http-equiv="Content-Type" content="text/html; charset=utf-8 everywhere"
I also used ini_set('default_charset', 'utf-8');
in my PHP page, and now the database has proper text with now weird characters.