Приходят каракули из базы данных.
$_connect_ = new PDO('mysql:host=localhost;dbname=db;charset=utf8;','root','12345');
$_connect_->exec('set names utf8');
$query = $_connect_->query("SELECT * FROM industries");
while($row = $query->fetch())
echo "
$row[name]<br>
$row[value]<br>
";
CREATE TABLE db.industries (
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
value varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
PRIMARY KEY (id)
)
ENGINE = MYISAM
AUTO_INCREMENT = 2
AVG_ROW_LENGTH = 40
CHARACTER SET utf8
COLLATE utf8_bin;
Как это исправить?