Explorar o código

Try to use unicode with mySQL and output

James Seward %!s(int64=12) %!d(string=hai) anos
pai
achega
906e1d4ab8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      QuoteEngine/www/index.php

+ 3 - 0
QuoteEngine/www/index.php

@@ -21,6 +21,8 @@
 		die("Unable to select database.");
 	}
 
+	@mysql_set_charset('utf8');
+
   if (isset($_GET['channel'])) {
 		$channel = $_GET['channel'];
 	}
@@ -67,6 +69,7 @@
 	}
 ?></title>
 		<link rel="stylesheet" type="text/css" href="<?php echo QUOTES_CSS; ?>">
+		<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
 </head>
 
 <?php