diamond question mark character set

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

diamond question mark character set

Post by kendall »

Hey guys,

viewtopic.php?f=2&t=111089

just posting this here in case it was in the wrong category
rhecker
Forum Contributor
Posts: 178
Joined: Fri Jul 11, 2008 5:49 pm

Re: diamond question mark character set

Post by rhecker »

Add the musql_query line below to your database connection. This is one possible solution. If this doesn't work, look for other places where UTF8 isn't specified, for instance, in includes.


Code: Select all

$dbcnx = @mysql_connect('localhost', 'root', '');
mysql_query("set names 'utf8'");
if (!$dbcnx) {
Locked