Jump to content

£ changing to ? in a diamond


dmccabe

Recommended Posts

Character set set wrong somewhere. It should be the same for your (X)HTML documents, your database collations and your database connection.

 

UTF-8 example:

 

XHTML (inside head tags):

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

 

Database connection (after connecting to database in your PHP script):

<?php
//call to mysql_connect() saved in $connection, and call to mysql_select_db() goes here
mysql_query("SET NAMES 'utf8'", $connection);
mysql_query('SET CHARACTER SET utf8', $connection);
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.