Commit cb5a349216cc724c0a1c3562446bff62c5b1312b

Authored by Jean Wasilewski
1 parent 69eafcb3

Fix for the UTF8 and the dynamic inclusion

Showing 2 changed files with 4 additions and 0 deletions   Show diff stats
creds.php
... ... @@ -3,4 +3,7 @@ define("__MYSQL_USERNAME__", "crep");
3 3 define("__MYSQL_PASSWORD__", "lescrepcestcool");
4 4 define("__MYSQL_HOSTNAME__", "cambraisis.escaut.net");
5 5 define("__MYSQL_DATABASE__", "crep");
  6 +mb_internal_encoding('UTF-8');
  7 +mb_http_output('UTF-8');
  8 +mb_http_input('UTF-8');
6 9 ?>
... ...
news.php
1 1 <?php
  2 +require_once("creds.php");
2 3  
3 4 echo "<h2> News ";
4 5 if(isset($_SESSION["admin"])&&$_SESSION["admin"])
... ...