: , , ,
, UTF-8
, , , ? , , .
, , - MySQL MySQL // UTF8_general_ci?
- MySQL UTF8 UTF8, 3 , 4 , UTF-8, . UTF -8 .
, MySQL UTF8_ UTF8mb4_ ( : MySQL 5.5.3), UTF8_multibyte_4, UTF-8.
, - PHP , mb_ PHP .
, , , , UTF8mb4, , , , 3- UTF8, PHP 4- UTF8 .
, , MySQL, , !
:
function file($fileName, $content) {
if (!file_exists("out/".$fileName)) {
$file_handle = fopen(DOCROOT . "out/".$fileName, "wb") or die("can't open file");
fwrite($file_handle, iconv('UTF-8', 'UTF-8', $content));
fclose($file_handle);
return TRUE;
} else {
return FALSE;
}
}
$file_handle if, , .
iconv , "utf-8" er, "utf-8". , , /, , , , .