在屏幕上显示阿拉伯语的问题 [英] Issue with display of arabic language on screen
问题描述
我在屏幕上显示阿拉伯语有问题。我的HTML代码是
Hi,
I have issue with display of Arabic language on screen. My html code is
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>My first styled page</title>
<link rel="stylesheet" href="mycss.css">
<div id="taskStepsContainer" class="InformationLongText">
<div id="taskSteps" class="defaultTextBox">النص الخاص بي : <br>النص الخاص بي<br> <script>
</script> <br> { a <br>{ a<br>{ a<br>{ a<br>{ a<br>{ a<br>{ a<br> <br><br></div>
</div>
</head>
<body>
and css file is
body {
font-family: Georgia, "Times New Roman",
Times, serif;
color: purple;
background-color: pink;
}
div{
dir:"rtl" ;
lang:"ar"
}
p{
dir: rtl ;
lang: ar;
}
.defaultTextBox{
direction: rtl;
left: -10px;
}
理想情况下,花括号应首先出现,然后是字符a输出应该是
a}
a}
a}
a}
a}
它在crome和firefox中是正确的但是IE输出的输出错误
a $
{a
{a
{a
{a
需要帮助。我使用的是IE 11.
谢谢和问候
我尝试了什么:
我尝试使用html代码和css,但它在IE中不起作用,它在crome和firefox中工作正常。
Ideally curly bracket should come first and then Character a e.g. Output should come as
a}
a}
a}
a}
a}
it come correct in crome and firefox but IE gives wrong output as
a}
{a
{a
{a
{a
Need help for the same.I am using IE 11.
Thanks and regards
What I have tried:
I tried with html code and css but it does not work in IE, it work fine in crome and firefox.
推荐答案
阿拉伯语没有特定的问题。几乎所有现代系统都默认支持Perso-Arabic脚本。
但是你的HTML错过了HTTP-EQUIV,这是不可接受的。您需要使用UTF-8(使用BOM或不使用它;对HTTP而言无关紧要):
There is no such problem specific to Arabic. Perso-Arabic script is supported by default on nearly all modern systems.
But your HTML misses HTTP-EQUIV, which is unacceptable. You need to use UTF-8 (with BOM or without it; it does not matter for HTTP) with this:
<html>
<head>
<title>Some Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- ... -->
</head>
<body>
<!-- ... -->
</body>
</html>
Yo你是否需要它,即使在HTTP服务器设置中默认设置了编码?为什么?好吧,想想那些在本地保存页面的人的兴趣。
大括号的问题并不清楚。这与那个不存在的阿拉伯问题完全无关。这很简单:使用HTML,您可以呈现任何可读文本。我不知道你输了哪里。
这篇关于在屏幕上显示阿拉伯语的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!