Caracteres japoneses con PHP y MySQL
| From: | rodrigo | Date: | Sun, 27 Jul 2008 22:45:13 +0000 |
| Subject: | Caracteres japoneses con PHP y MySQL | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-62940@lists.php.net to get a copy of this message | ||
Hola lista,
aquí molestando otra vez con una duda con respecto a una consulta
MySQL, de unos caracteres en japones en utf8_general_ci la cual
solo me retorna "?????????" cuando se corre. Si alguien sabe
como solucionarlo o donde podría conseguir ayuda se los agradecería.
>>el codigo que ocupo es:
<!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" />
<title>Consulta</title>
<head>
<?php
require_once('Connections/host.php');
mysql_select_db($database_host, $host);
$sql = "SELECT ids, name, title_orig FROM books WHERE
ids='".$_GET['id']."'";
$conex = mysql_query($sql, $host) or die(mysql_error());
$row = mysql_fetch_assoc($conex);
?>
<body>
<table width="300" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="100">codigo</td>
<td><?php echo $row['ids']; ?></td>
</tr>
<tr>
<td>titulo</td>
<td><?php echo $row['name']; ?></td>
</tr>
<tr>
<td>titulo original</td>
<td><?php echo $row['title_orig']; ?></td>
</tr>
</table>
</body>
</html>
<?php mysql_free_result($conex); ?>
>>el resultado es:
codigo 556845
titulo ROSARIO
titulo original ??????????
->esta mal el html o es algo de php o MySQL?
Alexis