Creo una bbdd sencilla
Código PHP:
CREATE TABLE `tabla` (
`a` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Volcar la base de datos para la tabla `tabla`
--
INSERT INTO `tabla` VALUES ('áéééé');
INSERT INTO `tabla` VALUES ('aááá a a a a');
Creo un archivo php cuya codificación está en utf8
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?php
require_once("adodb/adodb.inc.php");
$db = ADONewConnection("mysql");
$db->debug = SHOW_QUERYS;
$db->Connect("localhost", "root", "******", "test");
$rs = $db->Execute("SELECT * FROM tabla");
print "<pre>";
print_r($rs->GetRows());
print "</pre>";
?>
</html>
Código PHP:
Array
(
[0] => Array
(
[0] => �����
[a] => �����
)
[1] => Array
(
[0] => a��� a a a a
[a] => a��� a a a a
)
)
Alguien sabe si hay alguna versión en utf8 o cual es el problema?