Create website in malayalam language

16,691

Solution 1

For Multiple language support in websites you need to take care of three things basically.

1. Meta tag

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

2. Font-face

@font-face {
    font-family: 'Malayalam';
    src: url('../fonts/meera.eot');
    src: url('../fonts/meera.eot?#iefix') format('embedded-opentype'),
         url('../fonts/meera.woff') format('woff'),
         url('../fonts/meera.ttf') format('truetype'),
         url('../fonts/meera.svg#Malayalam') format('svg');
    font-weight: normal;
    font-style: normal;
}

You can use Font Squirrel fontface generator if you just have the .ttf file

3. Doctype

If you use HTML5 doctype <!DOCTYPE html> it won't work sometimes.

Use

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Hope this helps!

Solution 2

I am going to assume that you want to know how to get the characters to show in your HTML, since your question is not too clear. In order for the browser to correctly display Malayalam characters, you need to encode your web page in UTF-8. In addition, due to browser quirks, you need to declare the UTF-8 encoding in your header content type, or some browsers try to send HTML escaped characters instead.

If you are using HTML 5: <meta charset="utf-8">. Otherwise: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">. This would go in your <head>...</head> tags.

Share:
16,691
sivasangari
Author by

sivasangari

Updated on June 25, 2022

Comments

  • sivasangari
    sivasangari almost 2 years

    It's my first work in web-designing. I have to develop a website having contents in Malayalam and menus in English. Anyone please help me in doing this.

    Thanks in advance.