English language and arabic language

liunx

Guest
Hi!<br />
<br />
My site is written normally in English or French but sometimes there can be Arabic text. Some people do not see the Arab characters but rather strange characters not having any sense. What do you think that I must make?<br />
<br />
Thank you!<!--content-->You'll have to specify a font that contains arabic characters in the font family for the paragraphs that contain those arabic characters.<br />
<br />
In old-school HTML:<br />
<font family="Arial, Helvetica, Arabic_Font, Sans-serif"> // AVOID THE FONT TAG WHENEVER POSSIBLE!. It's a dinosaur. Use CSS:<br />
<br />
.containsArabic {<br />
font-family: Arial, Helvetica, Arabic_Font, Sans-serif;<br />
}<br />
<br />
Then in HTML:<br />
<br />
<p class="containsArabic">Yada yada yada.</p><br />
<br />
If the browser runs into an Arabic character, the browser will search for those characters first in the Arial and Helvetica fonts, it will look for those characters in the Arabic font. But place the font that you want most of the text to display in first.<br />
<br />
For more information about what I'm talking about: <!-- m --><a class="postlink" href="http://www.w3.org/TR/CSS2/fonts.html#font-family-prop">http://www.w3.org/TR/CSS2/fonts.html#font-family-prop</a><!-- m --><!--content-->by the way, what do u exactly mean by 'its a dinosaur' , i've seen it so many times, but don't know what it means!:(<!--content-->The font tag has been deprecated in favor of cascading style sheets<!--content-->oh! Thanx :)<!--content-->
 
Back
Top