If your database has special UTF-8 characters like the trademark, copyright etc but your script is returning them to the browser as garbage characters, do the following:
- Make sure the database table columns are stored using utf8_general_ci encoding
- The HTML page should have the following header:
<meta charset=”utf-8″ /> - Add the following as your first query after connecting to MySQL:
mysql_query("SET NAMES UTF8");