E
Eloyer Marian M
Guest
i have a problem with php about charsets.
i run ubuntu hardy heron with php5.
i want to use turkish charset.
i start with html, put header and meta tags, define charset in meta tags. then the php starts. but the output doesn't display correctly. i try changing browser's charset settings but does not help. by the way, the problem is not related with mysql. even the page title doesn't appear correctly. what should i do?
here is some of my code..
<html><head>
<title>Yönetim Paneli</title>
<META http-equiv=Content-Language content=tr>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-9">
<link href='style.css' rel='stylesheet' type='text/css'></head><body>
<center><h1>Yönetim Paneli</h1></center>
<table align='center' valign='top' width='%60'>
<tr>
<td bgcolor='#dedede' width='3%'><strong><center>ID</center></strong></td>
<td bgcolor='#dedede' width='7%'><strong><center>Marka</center></strong></td>
<td bgcolor='#dedede' width='6%'><strong><center>Ürün</center></strong></td>
<td bgcolor='#dedede' width='4%'><strong><center>Tür</center></strong></td>
<td bgcolor='#dedede' width='5%'><strong><center>Madde</center></strong></td>
<td bgcolor='#dedede' width='2%'><strong><center>Düzenle</center></strong></td>
<td bgcolor='#dedede' width='2%'><strong><center>Sil</center></strong></td>
</tr>
<?php
include('config.php');
.....
echo "<td bgcolor='#eaeaea' width='3%'>" . $row['id'] . "</td>";
echo "<td bgcolor='#eaeaea' width='7%'>" . $row['marka'] . "</td>";
echo "<td bgcolor='#eaeaea' width='6%'>" . $row['urun'] . "</td>";
echo "<td bgcolor='#eaeaea' width='4%'>" . $row['tur'] . "</td>";
echo "<td bgcolor='#eaeaea' width='5%'>" . $row['madde'] . "</td>";
echo '<td bgcolor="#dedede" width="2%"><center><a href="update.php?id='.$row['id'].'">Düzenle</center></a></td>';
echo '<td bgcolor="#dedede" width="2%"><center><a href="delete.php?id='.$row['id'].'">Sil</a></center></td>';
}
echo '</tr></table>';
?><br />
<center><?=$pagination?></center>
</body></html>
i run ubuntu hardy heron with php5.
i want to use turkish charset.
i start with html, put header and meta tags, define charset in meta tags. then the php starts. but the output doesn't display correctly. i try changing browser's charset settings but does not help. by the way, the problem is not related with mysql. even the page title doesn't appear correctly. what should i do?
here is some of my code..
<html><head>
<title>Yönetim Paneli</title>
<META http-equiv=Content-Language content=tr>
<META http-equiv=Content-Type content="text/html; charset=ISO-8859-9">
<link href='style.css' rel='stylesheet' type='text/css'></head><body>
<center><h1>Yönetim Paneli</h1></center>
<table align='center' valign='top' width='%60'>
<tr>
<td bgcolor='#dedede' width='3%'><strong><center>ID</center></strong></td>
<td bgcolor='#dedede' width='7%'><strong><center>Marka</center></strong></td>
<td bgcolor='#dedede' width='6%'><strong><center>Ürün</center></strong></td>
<td bgcolor='#dedede' width='4%'><strong><center>Tür</center></strong></td>
<td bgcolor='#dedede' width='5%'><strong><center>Madde</center></strong></td>
<td bgcolor='#dedede' width='2%'><strong><center>Düzenle</center></strong></td>
<td bgcolor='#dedede' width='2%'><strong><center>Sil</center></strong></td>
</tr>
<?php
include('config.php');
.....
echo "<td bgcolor='#eaeaea' width='3%'>" . $row['id'] . "</td>";
echo "<td bgcolor='#eaeaea' width='7%'>" . $row['marka'] . "</td>";
echo "<td bgcolor='#eaeaea' width='6%'>" . $row['urun'] . "</td>";
echo "<td bgcolor='#eaeaea' width='4%'>" . $row['tur'] . "</td>";
echo "<td bgcolor='#eaeaea' width='5%'>" . $row['madde'] . "</td>";
echo '<td bgcolor="#dedede" width="2%"><center><a href="update.php?id='.$row['id'].'">Düzenle</center></a></td>';
echo '<td bgcolor="#dedede" width="2%"><center><a href="delete.php?id='.$row['id'].'">Sil</a></center></td>';
}
echo '</tr></table>';
?><br />
<center><?=$pagination?></center>
</body></html>