Click to See Complete Forum and Search --> : HTML in non-english languages


XTI
07-07-2007, 10:42 PM
Hello people
I am working on a web site that requires non-english font such as ARABIC, PERSIAN, etc.I can't find any guideline or instruction as how to go about it. Any ideas?
Thanks in advance
PS. If you can recommend a book on the topic I also apreciate.

kfranzdev
07-08-2007, 12:28 AM
what do you need to know about it? i haven't yet created a website with arabic yet, but i have worked with russian and eastern european languages. it may just have to do with the character encoding set for the site...like UTF-8 or UTF-16?

XTI
07-08-2007, 11:54 AM
1. My own computer and keyboard does not give me Persian or Arabic charaters. So first problem is generating those characters on my machine so I can paste them into the HTML pages.
2. These pages would have part english and part Persian content (characters) if I specify UTF-8 wouldn;t that lead to problems?
3. Forms in the pages should send the filled data (in persian) to mysql database. (I checked the MySQL site and can;t find any reference to foreign characters. WOuld it accept foreign characters?)

Thanks a million for your information

• MaNiC MoE •
07-08-2007, 03:59 PM
hmm.. dat seemz like a BIG story, loolz
Anyway,

1. My own computer and keyboard does not give me Persian or Arabic charaters. So first problem is generating those characters on my machine so I can paste them into the HTML pages.
2. These pages would have part english and part Persian content (characters) if I specify UTF-8 wouldn;t that lead to problems?
3. Forms in the pages should send the filled data (in persian) to mysql database. (I checked the MySQL site and can;t find any reference to foreign characters. WOuld it accept foreign characters?)

Thanks a million for your information

1.Well, install the characters and get a new keyboard with the required layout.

2. Nope, I don't think that would be a problem.

3. I don't know really, but you could use English characters that show the pronunciation for these words.

• MaNiC MoE •
07-09-2007, 08:17 PM
Hey, I found out a solution!!
Just a second ago I was opening the W3C (http://www.w3c.org/) and I found them having more than one language written in under the "World Offices" heading.

So, I checked out the source code, and thats' how they did it :


<p class="navPara">The <a href="/Consortium/Offices/" class="navlink">W3C Offices</a>, part of the <a href="/2007/IntlRel.html">W3C
International Relations team</a> translate many W3C home page news
items. W3C Offices are located in these parts of the world:</p>

<ul>
<li><a href="http://www.w3c.org.au/" class="navlink" title="Australia">Australia</a></li>

<li><a href="http://www.w3c.nl/index.shtml.nl" class="navlink" hreflang="nl" title="Benelux"><span xml:lang="nl" lang="nl">Benelux</span></a>/<a href="http://www.w3c.nl/index.shtml.fr" class="navlink" title="Benelux" hreflang="fr"><span xml:lang="fr" lang="fr">Bénélux</span></a></li>

<li><a href="http://www.chinaw3c.org/" class="navlink" title="China" hreflang="zh-hans"><span xml:lang="zh-hans" lang="zh-hans">中国</span>
(China)</a></li>

<li><a href="http://www.w3c.tut.fi/" class="navlink" title="Finland" hreflang="fi"><span xml:lang="fi" lang="fi">Suomi</span>

(Finland)</a></li>

<li><a href="http://www.w3c.de/" class="navlink" title="German and Austria" hreflang="de"><span xml:lang="de" lang="de">Deutschland und Österreich</span> (Germany and Austria)</a></li>

<li><a href="http://www.w3c.gr/" class="navlink" title="Greece" hreflang="el"><span xml:lang="el" lang="el">Ελλάδα</span>
(Greece)</a></li>

<li><a href="http://www.w3c.org.hk/Chinese_T/index.html" class="navlink" title="Hong Kong" hreflang="zh-hant"><span xml:lang="zh-hant" lang="zh-hant">香港</span> (Hong Kong)</a></li>

<li><a href="http://www.w3c.hu/" class="navlink" title="Hungary" hreflang="hu"><span xml:lang="hu" lang="hu">Magyarország</span>
(Hungary)</a></li>

<li><a href="http://www.w3cindia.in/" class="navlink" title="India" hreflang="en"><span xml:lang="hi" lang="hi">भारत</span>
(India)</a></li>

<li><a href="http://www.w3c.org.il/indexh.php" class="navlink" title="Israel" hreflang="he"><span xml:lang="he" lang="he">ישראל</span>
(Israel)</a></li>

<li><a href="http://www.w3c.it/" class="navlink" title="Italy" hreflang="it"><span xml:lang="it" lang="it">Italia</span>

(Italy)</a></li>

<li><a href="http://www.w3c.or.kr/" class="navlink" title="Korea" hreflang="ko"><span xml:lang="ko" lang="ko">한국</span> (Korea)</a></li>

<li><a href="http://www.w3c.org.ma/" class="navlink" title="Morocco" hreflang="ar"><span xml:lang="ar" lang="ar">المغرب</span>
(Morocco)</a></li>

<li><a href="http://www.w3c.org.za/" class="navlink" title="Southern Africa" hreflang="en">Southern Africa</a></li>

<li><a href="http://www.w3c.es/" class="navlink" title="Spain" hreflang="es"><span xml:lang="es" lang="es">Espańa</span>

(Spain)</a></li>

<li><a href="http://www.w3c.se" class="navlink" title="Sweden" hreflang="sv"><span xml:lang="sv" lang="sv">Sverige</span>
(Sweden)</a></li>

<li><a href="http://www.w3c.rl.ac.uk/" class="navlink" title="UK and Ireland" hreflang="en-uk">United Kingdom and Ireland</a></li>
</ul>


I think this would help!!