Ouvre base user :
mysql_query("SET NAMES 'utf8'")
head : <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
'formualire :<form action="'.$_SERVER['REQUEST_URI'].'" method="post" accept-charset="UTF-8">
php
initialisation du jeu de caractere UTF8 pour les fonctions du module php MB
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
htmlentities($variable,ENT_QUOTES,'UTF-8');
html_entity_decode($variable,ENT_QUOTES,'UTF-8');
htmlspecialchars ( string $string [, int $quote_style = ENT_COMPAT [, string $charset [, bool $double_encode = true ]]] )
htmlspecialchars_decode ( string $string [, int $quote_style = ENT_COMPAT ] )
get_html_translation_table ([ int $table = HTML_SPECIALCHARS [, int $quote_style = ENT_COMPAT ]] )
utf8_encode
utf8_decode
strtolower > mb_strtolower
strtoupper > mb_strtoupper
mb_convert_case
mb_substr
mb_strlen
base de donnée :
ALTER DATABASE `sauver` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
CREATE DATABASE `toto` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
ALTER TABLE `ob_articles` CHANGE `art_titre` `art_titre` VARCHAR( 200 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL
CREATE TABLE `toto`.`article` (`texte` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci;