How to display foreign language in html?

Discussion in 'HTML & Website Design' started by runner, Nov 27, 2011.

  1. #1
    Hello DPers,
    I have been searching in google since morning, and coudlnt get any fix. My question is how to display foreign language, more specifically malayalam in a html webpage? I have tried adding lang="ml", but it gave no result. Now if i paste malayalam from ml.wikipedia.org many symbols are displayed in firefox, but it works perfectly in Opera.

    Thanks
     
    Solved! View solution.
    runner, Nov 27, 2011 IP
  2. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #2
    Toycel, Nov 27, 2011 IP
  3. #3
    I order to put in any language (other than English) you have choose the character type. You define this in the header of your document.
    In this case, Chinese:
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb18030" />
    <title>Untitled Document</title>
    </head>

    When declaring a character type, only people that have an internet font of that character type can see it.
    If your visitors do not have Malayalam installed, they won't see anything but strange characters.

    If you want the font to be visible to EVERYONE regardless of if they have the font or not, you'll need to use UNICODE.
    Unicode is a number that is assigned to each character, and frankly is a royal pain to write by hand.
    You'll need a program that can do it for you.
    You can try: http://www.malayalamunicode.com/

    When using Unicode you'll have to clare unicode as your character type:
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>

    Good luck
     
    xira, Nov 28, 2011 IP
    runner likes this.