I am using WAMP Server. (Windows, Apache, MySQL, PHP).
//so important
THE FIRST:
phpmyadmin MySQL:
, Mysql - utf.
, utf-general-ci
Mysql ( ) .
mysql_set_charset('utf8');
:
<?php
mysql_connect("localhost", "user", "password") or die(mysql_error());
mysql_set_charset('utf8');
echo "Connected to MySQL<br />";
mysql_select_db("mydb") or die(mysql_error());
echo "Connected to Database";
?>
:
php :
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-:
, php utf-8. u IDE, ++ Komodo Edit, .
// , .
php ( ).
<?php header("Content-type: text/html; charset=utf-8"); ?>
:
<form accept-charset="utf-8" ...>