HTML - 阿拉伯语支持 [英] HTML - Arabic Support

查看:432
本文介绍了HTML - 阿拉伯语支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,我必须在阿拉伯文写一些行....如何做到这一点...



在哪里获取阿拉伯文字符...如何使页面支持阿拉伯语...

我必须在每页放置一行,并且有很多lotta页面,所以无法绕过制作图像并把它们放在一起...




解决方案

W3C 一个很好的介绍



总之:

HTML是一种文本标记语言。文本意味着任何字符,而不仅仅是ASCII中的字符。


  1. 使用包含所需字符的字符编码保存文本(UTF-8是一个不错的选择)。这可能需要以特定于您正在使用的特定编辑器的方式来配置编辑器。 (很明显,它也需要你有一种方法来输入你想要的字符)
  2. 确保你的服务器在头文件中发送了正确的字符编码(你怎么做取决于服务器软件如果你通过HTTP提供的文档在内部指定了它的编码,那么确保它是正确的

  3. 如果文档发生任何事情在你保存它和它被提供之间(例如被放在一个数据库中,被服务器端脚本等所消耗),然后确保编码不会在途中被遗漏。

您也可以表示使用ASCII码的任何Unicode字符


i have a website in which i have to put some lines in Arabic.... how to do it...

where to get the Arabic text characters... how to make the page support Arabic...

i have to put a line per page and there is a lotta lotta pages so can't go around making images and putting them...

解决方案

The W3C has a good introduction.

In short:

HTML is a text markup language. Text means any characters, not just ones in ASCII.

  1. Save your text using a character encoding that includes the characters you want (UTF-8 is a good bet). This will probably require configuring your editor in a way that is specific to the particular editor you are using. (Obviously it also requires that you have a way to input the characters you want)
  2. Make sure your server sends the correct character encoding in the headers (how you do this depends on the server software you us)
  3. If the document you serve over HTTP specifies its encoding internally, then make sure that is correct too
  4. If anything happens to the document between you saving it and it being served up (e.g. being put in a database, being munged by a server side script, etc) then make sure that the encoding isn't mucked about with on the way.

You can also represent any unicode character with ASCII

这篇关于HTML - 阿拉伯语支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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