UTF-8 URL编码(希伯来语)在除IE之外的所有浏览器中工作

时间:2013-03-15 10:58:33

标签: html internet-explorer utf-8 hebrew percent-encoding

我有一个这样的html.file,一个带有希伯来名字的本地文件,如下所示: אב.html

编码的百分比编码链接适用于所有浏览器但不适用于IE。似乎IE正在将其翻译成UTF-8而不是ISO。

<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/></head>
<body>
<p>
UTF-8 file name in URL
File name is in hebrew 
<P>
&#1488;&#1489.html
<P>
Percent encoded does not work in IE / works in all other browsers:
<P>
%D7%90%D7%91.html
<P>
<a href="%D7%90%D7%91.html">&#1488;&#1489;
</a>
<P>
Ampersand encoded works in all browsers
<P>
'& #1488'; & #1489 ; ' .html 
<P>
<a href="&#1488;&#1489;.html">&#1488;&#1489;
</a>
</body></html>

0 个答案:

没有答案