sql >> Database >  >> RDS >> Mysql

PHP mysql charset utf8 problemen

Probeer dit

<?php

   header('Content-Type: text/html; charset=utf-8');
?>

en dan in de verbinding

<?php
 $dbLink = mysql_connect($argHost, $argUsername, $argPassword);
    mysql_query("SET character_set_results=utf8", $dbLink);
    mb_language('uni'); 
    mb_internal_encoding('UTF-8');
    mysql_select_db($argDB, $dbLink);
    mysql_query("set names 'utf8'",$dbLink);
?>



  1. Trends in databasehardware en -infrastructuur

  2. Converteer 'datetime2' naar 'time' in SQL Server (T-SQL-voorbeelden)

  3. MySQL PHP-incompatibiliteit

  4. Hoe MySQL-querylogboek inschakelen?