如何在html页面中键入persuian [英] how to type persuian in html page

查看:89
本文介绍了如何在html页面中键入persuian的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友

i下载了一个模板。

i想把部分零件换成波斯语。

我的页面如下所示。 />

 <  !DOCTYPE     html  >  
< html lang = zh >
< head >
< title > hello < / title >

< meta http-equiv = pragma 内容 = no-cache >
< meta name = description content = < span class =code-keyword> >
< ;! - < meta name =viewportcontent =width = device-width,initial-scale = 1 ,maximum-scale = 1> - >
< ; link rel < span class =code-keyword> = stylesheet href = css / reset.css 类型 = text / css media = screen >
< link rel = 样式表 < span class =code-attribute> href = css / style.css type = text / css media = screen >
< link rel = 样式表 href = css / zerogrid.css type = text / css media = screen >
< link rel = stylesheet href = css /responsive.css\" type = text / css 媒体 = screen >
< script src = js / css3-mediaqueries。 js > < / script >
< script src = js / jquery-1.6.3.min.js type = text / javascript > < / script >
< < span class =code-leadattribute> script
src = js / cufon-yui.js 类型 = text / javascript > < / script >
< script src = js / cufon-replace.js type = text / javascript > < / script >
< script src = js / NewsGoth_400.font.js type < span class =code-keyword> = text / javascript > < / 脚本 >
< script src = js / NewsGoth_700.font.js type = text / javascript > < / script >
< script src = js / NewsGoth_Lt_BT_italic_400.font.js type = text / javascript > < / script < span class =code-keyword>>
< script src = js / Vegur_400.font.js type = text / javascript > < / script >
< script src = js / FF-cash.js type = text / javascript > < / script < span class =code-keyword>>
< script src = js / jquery.featureCarousel.js t ype = text / javascript > ; < / script >
< script type = text / javascript >
$( document )。ready( function (){
$( #carousel)。featureCarousel({
autoPlay: 7000
trackerIndividual: false
trackerSummation: false
topPadding: 50
smallFeatureWidth:。 9
smallFeatureHeight :。 9
sidePadding: 0
smallFeatureOffset: 0
});
});
< / script >
<! - < span class =code-comment> [if lt IE 7]>
< div style ='clear:both;文本对齐:中心;已移除:相对;'>
< a href =http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode>
< img src =http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpgborder =0height =42width =820alt =您使用的是过时的浏览器。为了获得更快,更安全的浏览体验,请立即免费升级。 />
< / a>
< / div>
<![endif]
- >
<! - [if lt IE 9]>
< script type =text / javascriptsrc =js / html5.js>< / script>
< link rel =stylesheethref =css / ie.csstype =text / cssmedia =screen>
<![endif]
- >

< / head >
< body id = page1 >
< div < span class =code-attribute> class = extra >
<! - ==============================头============== =================== - >



< header >
< / header >
<! - ==== ==========================内容======================= ========= - >



<! - === ===========================页脚====================== =========== - >



i更改了如下代码。

 <   html       xmlns   =  http://www.w3.org/1999/xhtml    xml:lang   =  fa     lang   = < span class =code-keyword> fa >  
< head >
< title > ; / title>

< meta http-equiv = pragma content = no-cache >
< meta http-equiv = 内容类型 内容 = text / html; charset = utf-8 >





但是在我的页面中只是字符已被sh欠款和fa字符尚未显示。

例如:

当我在页面中输入Home page k(fa characters)z时,它就像下面的那样

主页kz。这意味着fa字符是不可见的。

感谢您的回复。

解决方案

document ).ready( function (){


#carousel)。featureCarousel({
autoPlay: 7000
trackerIndividual: false
trackerSummation: false
topPadding: 50
smallFeatureWidth:。 9
smallFeatureHeight:。 9
sidePadding: 0
smallFeatureOffset: 0
});
});
< / script >
<! - < span class =code-comment> [if lt IE 7]>
< div style ='clear:both;文本对齐:中心;已移除:相对;'>
< a href =http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode>
< img src =http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpgborder =0height =42width =820alt =您使用的是过时的浏览器。为了获得更快,更安全的浏览体验,请立即免费升级。 />
< / a>
< / div>
<![endif]
- >
<! - [if lt IE 9]>
< script type =text / javascriptsrc =js / html5.js>< / script>
< link rel =stylesheethref =css / ie.csstype =text / cssmedia =screen>
<![endif]
- >

< / head >
< body id = page1 >
< div < span class =code-attribute> class = extra >
<! - ==============================头============== =================== - >



< header >
< / header >
<! - ==== ==========================内容======================= ========= - >



<! - === ===========================页脚====================== =========== - >



i更改了如下代码。

 <   html       xmlns   =  http://www.w3.org/1999/xhtml    xml:lang   =  fa     lang   = < span class =code-keyword> fa >  
< head >
< title > ; / title>

< meta http-equiv = pragma content = no-cache >
< meta http-equiv = 内容类型 内容 = text / html; charset = utf-8 >





但是在我的页面中只是字符已被sh欠款和fa字符尚未显示。

例如:

当我在页面中输入Home page k(fa characters)z时,它就像下面的那样

主页kz。这意味着fa字符是不可见的。

感谢您的回复。


与任何其他语言相同。没有什么特别的事,因为默认情况下所有现代系统都支持波斯语。您只需要使用Unicode。您应该以UTF-8保存HTML页面的文本,并始终在HTTP-EQUIV中规定它:

  <   html  >  
< head >
< meta http-equiv = 内容类型 content = text / html; charset = utf -8 / >
<! - < span class =code-comment> ... - >
< / head >
< body >
<! - ... - >
< / body < span class =code-keyword>>
< / html >





参见:

http://en.wikipedia.org/wiki/Arabic_script [ ^ ],

http://en.wikipedia.org/wiki/ Unicode [ ^ ],

http://unicode.org [ ^ ],

http://en.wikipedia.org/wiki/ UTF [ ^ ],

http://en.wikipedia.org/wiki/UTF-8 [ ^ ],

http://www.unicode.org/faq/utf_bom.html [ ^ ]。



-SA

hello friends
i downloaded a template .
i want to change some of parts to persian.
my page is like below.

<!DOCTYPE html>
<html  lang="en">
<head>
    <title>hello</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta name="description" content="">
	<!--<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">-->
    <link rel="stylesheet" href="css/reset.css" type="text/css" media="screen">
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
	<link rel="stylesheet" href="css/zerogrid.css" type="text/css" media="screen">
	<link rel="stylesheet" href="css/responsive.css" type="text/css" media="screen">
	<script src="js/css3-mediaqueries.js"></script>
    <script src="js/jquery-1.6.3.min.js" type="text/javascript"></script>
    <script src="js/cufon-yui.js" type="text/javascript"></script>
    <script src="js/cufon-replace.js" type="text/javascript"></script>
    <script src="js/NewsGoth_400.font.js" type="text/javascript"></script>
	<script src="js/NewsGoth_700.font.js" type="text/javascript"></script>
    <script src="js/NewsGoth_Lt_BT_italic_400.font.js" type="text/javascript"></script>
    <script src="js/Vegur_400.font.js" type="text/javascript"></script>
    <script src="js/FF-cash.js" type="text/javascript"></script>
    <script src="js/jquery.featureCarousel.js" type="text/javascript"></script>
    <script type="text/javascript">
      $(document).ready(function() {
        $("#carousel").featureCarousel({
			autoPlay:7000,
			trackerIndividual:false,
			trackerSummation:false,
			topPadding:50,
			smallFeatureWidth:.9,
			smallFeatureHeight:.9,
			sidePadding:0,
			smallFeatureOffset:0
		});
      });
    </script>
	<!--[if lt IE 7]>
    <div style=' clear: both; text-align:center; removed: relative;'>
        <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
        	<img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
        </a>
    </div>
	<![endif]-->
    <!--[if lt IE 9]>
   		<script type="text/javascript" src="js/html5.js"></script>
        <link rel="stylesheet" href="css/ie.css" type="text/css" media="screen">
	<![endif]-->
</head>
<body id="page1">
	<div class="extra">
    	<!--==============================header=================================-->
.
.
.
        <header>
</header>
        <!--==============================content================================-->
.
.

	<!--==============================footer=================================-->   


i changed code like below.

<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="fa" lang="fa">
<head>
    <title>;/title>

    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">



but in my page just en characters has been showed and fa characters has not been showed.
for example :
when i type "Home page k(fa characters)z" in page it be like below
"Home page kz" . it means fa characters is invisible.
thanks for your reply.

解决方案

(document).ready(function() {


("#carousel").featureCarousel({ autoPlay:7000, trackerIndividual:false, trackerSummation:false, topPadding:50, smallFeatureWidth:.9, smallFeatureHeight:.9, sidePadding:0, smallFeatureOffset:0 }); }); </script> <!--[if lt IE 7]> <div style=' clear: both; text-align:center; removed: relative;'> <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"> <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /> </a> </div> <![endif]--> <!--[if lt IE 9]> <script type="text/javascript" src="js/html5.js"></script> <link rel="stylesheet" href="css/ie.css" type="text/css" media="screen"> <![endif]--> </head> <body id="page1"> <div class="extra"> <!--==============================header=================================--> . . . <header> </header> <!--==============================content================================--> . . <!--==============================footer=================================-->


i changed code like below.

<html  xmlns="http://www.w3.org/1999/xhtml" xml:lang="fa" lang="fa">
<head>
    <title>;/title>

    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">



but in my page just en characters has been showed and fa characters has not been showed.
for example :
when i type "Home page k(fa characters)z" in page it be like below
"Home page kz" . it means fa characters is invisible.
thanks for your reply.


Same way as any other language. There is nothing special to do, because Persian is supported by default on all modern systems. You only need to use Unicode. You should save your text of the HTML pages in UTF-8, and always prescribe it in the HTTP-EQUIV:

<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <!-- ... -->
   </head>
   <body>
      <!-- ... -->
   </body>
</html>



See also:
http://en.wikipedia.org/wiki/Arabic_script[^],
http://en.wikipedia.org/wiki/Unicode[^],
http://unicode.org[^],
http://en.wikipedia.org/wiki/UTF[^],
http://en.wikipedia.org/wiki/UTF-8[^],
http://www.unicode.org/faq/utf_bom.html[^].

—SA


这篇关于如何在html页面中键入persuian的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆