<?php
$conn = mysql_connect ("localhost", "root", "", true);
if (! $conn ) die( 'Could not connect: ' . mysql_error ());
mysql_select_db("test") or die('Could not select database ');
mysql_set_charset('utf8',$conn);
?>
ref
http://dk.php.net/manual/en/function.mysql-set-charset.phpNote:
This is the preferred way to change the charset. Using mysql_query() to execute SET NAMES .. is not recommended.
formateret tabellen til utf-8,
og selve html/php filen er
gemt filen i UTF-8 uden BOM format
samt du anvender selvføgelig den rigtige meta på din side
( <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> )
anvend sammen tegnæt hele vejen rundt