在HTML页面上使用Turkish Chars

时间:2013-08-07 17:24:29

标签: html utf-8 character-encoding turkish

我认为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 Insaat”,我想要“Marmaraİnşaat”

谢谢!

1 个答案:

答案 0 :(得分:0)

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

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