0

我认为 charset:windows-1254 应该使土耳其字符在页面上可用,但它们没有出现,这是我的完整代码:

<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1254">
<title>Marmara İnşaat</title>
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginheight="0"     marginwidth="0" bgcolor="#FFFFFF">

<table border="0" width="100%" cellspacing="0" cellpadding="0" background="img/topbkg.gif">
  <tr>
    <td width="50%"><img border="0" src="img/toplogo.gif" width="142" height="66"></td>
    <td width="50%">
      <p align="right"><img border="0" src="img/topright.gif" width="327" height="66">    </td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0"     background="img/blackline.gif">
  <tr>
    <td width="100%"><font color="#B8C0F0" face="Arial" size="2"><b>&nbsp;&nbsp;
      Ana Sayfa&nbsp;&nbsp; </b></font></td>
  </tr>
</table>
<p style="margin-left: 20"><b><font color="#B8C0F0" face="Arial" size="20">&nbsp;    </font></b><font face="Arial" size="20" color="#0000FF"><p><b>Tüm müşterilerimizin Ramazan bayramı kutlu olsun!</b></p>
<p><b>Mutlu Bayramlar.</b></p>
</font></p>
<p style="margin-left: 20"><font face="Arial" size="2" color="#000000">&nbsp;</font></p>
<p style="margin-left: 20"><font face="Arial" size="2" color="#000000">&nbsp;</font></p>
<p style="margin-left: 20"><font face="Arial" size="2" color="#000000">&nbsp;</font></p>
<p style="margin-left: 20"><font face="Arial" size="2" color="#000000">&nbsp;</font>    </p>
<p style="margin-left: 20" align="center"><font face="Arial" color="#000000" size="1">©
Tüm Haklari Saklidir www.marmarains.com</font></p>
<p style="margin-right: 20" align="right"><font face="Arial" color="#000000" size="1">
<br>Marmara İnşaat,Dekorasyon,Gida<br></font></p>
<table border="0" width="100%" cellspacing="0" cellpadding="0"          background="img/botline.gif">
  <tr>
    <td width="100%"><img border="0" src="img/botline.gif" width="41" height="12"></td>
  </tr>
</table>
</body>
</html>

例如,我想要“Marmara İnşaat”而不是“Marmara Insaat”

谢谢!

4

1 回答 1

0

该文档尚未以 windows-1254 编码保存。许多程序甚至无法以这种编码方式生成数据。但是,当以该编码正确编写时,页面按原样工作(嗯,在这方面;那里的其他区域存在编码错误。

然而,根据评论,通常(并且正式)建议使用 UTF-8,就像您现在所做的那样。这也需要实际编码(数据保存在其中)和声明的编码(根据meta标签或其他方式)之间的匹配。

于 2013-08-07T19:58:35.800 回答