/    Sign up×
Community /Pin to ProfileBookmark

Different languages in text form in HTML page

Hello,

I am planning to use Arabic, Chinese, Urdu, Punjabi text and some other languages in my HTML page, but not sure how I could do this?

Is there something to do with UTF encoding or the HTML <head> tag?

Any help would be great.

Thanks

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@holyhttpMay 11.2007 — Each language has its own meta tag.

For instance for Arabic:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-6" />

for chinese simplified:

<meta http-equiv="Content-Type" content="text/html; charset=hz-gb-2312" />

and so forth.

You can go to the w3c.org web site for more info.
Copy linkTweet thisAlerts:
@Major_PayneMay 12.2007 — Might check out:

Language META Tag.

Ron
Copy linkTweet thisAlerts:
@CharlesMay 12.2007 — No, you want to use &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;

&lt;p lang="ar"&gt;[i]some Arabic paragraph[/i]&lt;/p&gt;

&lt;p lang="zh"&gt;[i]some Chinese paragraph[/i]&lt;/p&gt;

&lt;p lang="ur"&gt;[i]some Urdu paragraph[/i]&lt;/p&gt;

&lt;p lang="pa"&gt;[i]some Punjabi paragraph[/i]&lt;/p&gt;
See [list]
  • [*]http://www.w3.org/TR/html401/struct/dirlang.html#adef-lang
  • [*]http://www.loc.gov/standards/iso639-2/php/code_list.php
  • [*]http://www.w3.org/International/
  • [/list]
    Copy linkTweet thisAlerts:
    @invisionauthorMay 14.2007 — Thanks very much for all your help.

    I think will use Charles' solution.


    Thanks again for your efforts, brilliant!
    ×

    Success!

    Help @invision spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...